-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ICE for unexpected <
in pattern
#22544
Conversation
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
impl<T> Foo<T> { | ||
fn foo(&self) { | ||
match *self { | ||
Foo::<T>(ref x, ref y) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, I'm not actually sure we should accept this syntax in a pattern ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(of course it could be that we're already accepting this syntax in a pattern. But nonetheless, I'm not sure I want to validate such acceptance in a formal test.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But current nightly accept it.
I was surprised too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, lets bring up this up as a separate question to the team. (We have a triage meeting in 1.5 hours; I'll file a ticket for it.)
@bombless r=me if you remove the aforementioned questionable run-pass test. |
r? @pnkfelix |
Closes #22426
I'm not sure which is better:
<
"<
, expect one of=>
,:
,(
"But this PR is actually mergable now