-
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
Remove check_match from const_eval #59781
Conversation
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
r? @oli-obk |
The job Click to expand the log.
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 |
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.
You need to run ./x.py test --stage 1 src/test/ui --bless
in order to update the changed diagnostics due to cyclic errors having a different backtrace now.
@oli-obk got it! I'll get that pushed up ASAP. |
@oli-obk okay, I have updated the |
Yes I think that warning was redundant anyway. |
@@ -22,14 +22,6 @@ error[E0572]: return statement outside of function body | |||
LL | [(); return while let Some(n) = Some(0) {}]; | |||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |||
|
|||
warning: irrefutable while-let 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.
Now that I think of it.... This is actually a diagnostics improvement. This now-removed diagnostic is just plain wrong.
@bors r+ thanks! |
📌 Commit d4d2317 has been approved by |
tcx.mir_const_qualif(def_id); | ||
} | ||
|
||
// Do not continue into miri if typeck errors occurred; it will fail horribly |
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.
Might be worth preserving this comment.
Remove check_match from const_eval This fixes rust-lang#59378. It seems that the `check_match` may be unnecessary, so this removes it per instructions provided in the issue. I re-ran the tests for `librustc_mir` and everything seemed fine!
Rollup of 8 pull requests Successful merges: - #59781 (Remove check_match from const_eval) - #59820 (proc_macro: stop using LEB128 for RPC.) - #59846 (clarify what the item is in "not a module" error) - #59847 (Error when using `catch` after `try`) - #59859 (Suggest removing `?` to resolve type errors.) - #59862 (Tweak unstable diagnostic output) - #59866 (Recover from missing semicolon based on the found token) - #59892 (Impl RawFd conversion traits for WASI TcpListener, TcpStream and UdpSocket) Failed merges: r? @ghost
This fixes #59378.
It seems that the
check_match
may be unnecessary, so this removes it per instructions provided in the issue. I re-ran the tests forlibrustc_mir
and everything seemed fine!