-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Move PatKind::Lit
checking from ast_validation to ast lowering
#92080
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
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
24cc91c
to
2b75ca2
Compare
r=me with a test exercising the |
This comment has been minimized.
This comment has been minimized.
Fixes rust-lang#92074 This allows us to insert an `ExprKind::Err` when an invalid expression is used in a literal pattern, preventing later stages of compilation from seeing an unexpected literal pattern.
@bors r+ |
📌 Commit 137c374 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (d367c34): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
Fixes #92074
This allows us to insert an
ExprKind::Err
when an invalid expressionis used in a literal pattern, preventing later stages of compilation
from seeing an unexpected literal pattern.