-
Notifications
You must be signed in to change notification settings - Fork 13k
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 broken or-pattern in async fn #71557
Fix ICE for broken or-pattern in async fn #71557
Conversation
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
r? @oli-obk |
} => { | ||
if is_primary { | ||
f(self, mutability, name, mode, var, pattern.span, ty, pattern_user_ty.clone()); | ||
} | ||
if let Some(subpattern) = subpattern.as_ref() { |
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.
aren't subpatterns only relevant for the primary, too, as each variable must occur in all variants?
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.
The whole point of this PR is that we can't assume that patterns are well formed because the error isn't fatal.
@bors r+ |
📌 Commit 4dd47d3 has been approved by |
…tern, r=oli-obk Fix ICE for broken or-pattern in async fn closes rust-lang#71297
☀️ Test successful - checks-actions, checks-azure |
closes #71297