Conversation
|
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
|
Could you tag this as a |
src/libsyntax/parse/parser.rs
Outdated
There was a problem hiding this comment.
Maybe this could be factored out into self.parse_ident_or_self_type()?
There was a problem hiding this comment.
I guess that would make it somewhat more clear, yeah.
5409574 to
0d7ec46
Compare
There was a problem hiding this comment.
there's no test for this error message
There was a problem hiding this comment.
Right, this error message can not actually trigger right now, its just there because I copied the two parser functions for the self keyword.
|
@bors r+ 0d7ec46 |
|
(sorry, hit wrong button by accident) |
|
@bors r+ 0d7ec46 |
|
⌛ Testing commit 0d7ec46 with merge 0c409ae... |
|
💔 Test failed - auto-mac-32-opt |
|
Whoops, forgot to actually test a full bootstrap, and it seems like pattern bindings with the identifier |
It is only allowed in paths now, where it will either work inside a `trait` or `impl` item, or not resolve outside of it. [breaking-change] Closes rust-lang#22137
0d7ec46 to
07d00de
Compare
|
Should pass |
|
@bors: r=pnkfelix 07d00de |
|
⌛ Testing commit 07d00de with merge 7378fd9... |
It is only allowed in paths now, where it will either work inside a `trait` or `impl` item, or not resolve outside of it. [breaking-change] Closes #22137
|
💔 Test failed - auto-linux-32-opt |
|
Hm, the failure doesn't seem to be related to the PR, and does not reproduce locally. |
|
@bors: retry |
|
⌛ Testing commit 07d00de with merge b63cee4... |
It is only allowed in paths now, where it will either work inside a `trait` or `impl` item, or not resolve outside of it. [breaking-change] Closes #22137
It is only allowed in paths now, where it will either work inside a
traitor
implitem, or not resolve outside of it.[breaking-change]
Closes #22137