-
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
Propagate locals, even if they have unpropagatable assignments somewhere #72135
Conversation
@bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit 0a785cd with merge b75ab6aef59abf16a83fbec1804dce3a74244824... |
@@ -29,17 +29,26 @@ | |||
// + ty: i32 | |||
// + val: Value(Scalar(0x00000063)) | |||
// mir::Constant | |||
// + span: $DIR/mutable_variable_aggregate_partial_read.rs:6:11: 6:13 | |||
- // + span: $DIR/mutable_variable_aggregate_partial_read.rs:6:11: 6:13 | |||
+ // + span: $DIR/mutable_variable_aggregate_partial_read.rs:6:5: 6:13 |
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.
I should pull 060e437b776e238a492372fbb278fdc27fef1128 out of #71911 and get that merged so we can eliminate this kind of noise from the const prop tests.
@@ -893,6 +893,11 @@ impl<'mir, 'tcx> MutVisitor<'tcx> for ConstPropagator<'mir, 'tcx> { | |||
// ``` | |||
// FIXME: we overzealously erase the entire local, because that's easier to | |||
// implement. | |||
trace!( | |||
"propagation into {:?} failed. | |||
Nuking the entire site from orbit, it's the only way to be sure", |
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.
👏
☀️ Try build successful - checks-actions, checks-azure |
Queued b75ab6aef59abf16a83fbec1804dce3a74244824 with parent d903a9d, future comparison URL. |
Finished benchmarking try commit b75ab6aef59abf16a83fbec1804dce3a74244824, comparison URL. |
@bors r+ |
📌 Commit 0a785cd has been approved by |
⌛ Testing commit 0a785cd with merge edfb262856755d7532ca4cb452d5668360e68f9b... |
💔 Test failed - checks-azure |
LGTM. @bors r=wesleywiser |
📌 Commit 27c818b has been approved by |
☀️ Test successful - checks-azure |
Second try for #71946 (comment)
r? @wesleywiser
cc @rust-lang/wg-mir-opt @RalfJung