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 |
oli-obk
left a comment
There was a problem hiding this comment.
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. |
| LL | [(); return while let Some(n) = Some(0) {}]; | ||
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
|
||
| warning: irrefutable while-let pattern |
There was a problem hiding this comment.
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.
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_matchmay be unnecessary, so this removes it per instructions provided in the issue. I re-ran the tests forlibrustc_mirand everything seemed fine!