-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Use exhaustive match in const_prop.rs #73693
Conversation
| Rvalue::Cast(..) | ||
| Rvalue::Discriminant(..) | ||
| Rvalue::AddressOf(..) | ||
| Rvalue::NullaryOp(..) => {} |
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.
What is the justification for doing nothing for all of these?
I don't actually understand this code, maybe it would be better if @oli-obk reviewed this.^^
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.
Would be good to have a brief comment here saying why it is okay to ignore these.
This comment has been minimized.
This comment has been minimized.
r? @oli-obk |
e7920b2
to
b4d0457
Compare
Rebased and add a comment. |
@bors r+ |
📌 Commit b4d0457 has been approved by |
@bors rollup |
⌛ Testing commit b4d0457 with merge 3f1a04d3651282e361fd66c2375f91a5ed78f1d6... |
💔 Test failed - checks-actions |
Looks like a networking issue or something?
@bors r=oli-obk |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit b4d0457 has been approved by |
The command to re-run CI is |
…arth Rollup of 12 pull requests Successful merges: - rust-lang#73140 (Fallback to xml.etree.ElementTree) - rust-lang#73670 (Add `format_args_capture` feature) - rust-lang#73693 (Use exhaustive match in const_prop.rs) - rust-lang#73845 (Use &raw in A|Rc::as_ptr) - rust-lang#73861 (Create E0768) - rust-lang#73881 (Standardize bibliographic citations in rustc API docs) - rust-lang#73925 (Improve comments from rust-lang#72617, as suggested by RalfJung) - rust-lang#73949 ([mir-opt] Fix mis-optimization and other issues with the SimplifyArmIdentity pass) - rust-lang#73984 (Edit docs for rustc_data_structures::graph::scc) - rust-lang#73985 (Fix "getting started" link) - rust-lang#73997 (fix typo) - rust-lang#73999 (Bump mingw-check CI image from Ubuntu 16.04 to 18.04.) Failed merges: - rust-lang#74000 (add `lazy_normalization_consts` feature gate) r? @ghost
Addresses a comment left by @RalfJung on #73613
r? @RalfJung