Skip to content

2018 edition - confusing error message when declaring unnamed parameters #56584

Merged
bors merged 2 commits into
rust-lang:masterfrom
davidtwco:issue-53990
Dec 15, 2018
Merged

2018 edition - confusing error message when declaring unnamed parameters #56584
bors merged 2 commits into
rust-lang:masterfrom
davidtwco:issue-53990

Conversation

@davidtwco

Copy link
Copy Markdown
Member

Fixes #53990.

This PR adds a note providing context for the change to argument
names being required in the 2018 edition for trait methods and a
suggestion for the fix.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @eddyb

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 7, 2018
@Nemo157

This comment has been minimized.

@eddyb

eddyb commented Dec 7, 2018

Copy link
Copy Markdown
Contributor

r? @nikomatsakis

@rust-highfive rust-highfive assigned nikomatsakis and unassigned eddyb Dec 7, 2018
This commit adds a note providing context for the change to argument
names being required in the 2018 edition for trait methods.
This commit emits a suggestion for adding an underscore binding to
arguments in trait methods that previously did not have a argument name
specified.
@davidtwco

Copy link
Copy Markdown
Member Author

It seems like the compatibility warning and the hard error could use the same/similar error messages (playground)

Ah, good point @Nemo157. I've updated the messages.

@nikomatsakis

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Dec 11, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit 7fcf31b has been approved by nikomatsakis

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 11, 2018
@bors

bors commented Dec 11, 2018

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 7fcf31b with merge e8c8d274b0b611a5d4711af6095d477729436e30...

@bors

bors commented Dec 11, 2018

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-appveyor

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Dec 11, 2018
@rust-highfive

Copy link
Copy Markdown
Contributor

Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
Checking out files: 100% (17616/17616), done.
travis_time:end:08c8ad60:start=1544571738042518000,finish=1544571750320195000,duration=12277677000
$ cd rust-lang/rust
$ git checkout -qf e8c8d274b0b611a5d4711af6095d477729436e30
fatal: reference is not a tree: e8c8d274b0b611a5d4711af6095d477729436e30
The command "git checkout -qf e8c8d274b0b611a5d4711af6095d477729436e30" failed and exited with 128 during .
Your build has been stopped.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@alexcrichton

Copy link
Copy Markdown
Member

@bors: retry

  • CI automation hiccup

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 11, 2018
@bors

bors commented Dec 15, 2018

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 7fcf31b with merge 747a5e5...

bors added a commit that referenced this pull request Dec 15, 2018
2018 edition - confusing error message when declaring unnamed parameters

Fixes #53990.

This PR adds a note providing context for the change to argument
names being required in the 2018 edition for trait methods and a
suggestion for the fix.
@bors

bors commented Dec 15, 2018

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-appveyor, status-travis
Approved by: nikomatsakis
Pushing 747a5e5 to master...

@bors bors merged commit 7fcf31b into rust-lang:master Dec 15, 2018
@davidtwco davidtwco deleted the issue-53990 branch December 15, 2018 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2018 edition - confusing error message when declaring unnamed parameters

7 participants