-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Visit move out of _0
when visiting return
#72048
Conversation
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
r? @oli-obk |
@@ -91,6 +91,16 @@ impl<'tcx> MutVisitor<'tcx> for RenameLocalVisitor<'tcx> { | |||
*local = self.to; | |||
} | |||
} | |||
|
|||
fn visit_terminator_kind(&mut self, kind: &mut TerminatorKind<'tcx>, location: Location) { |
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.
is this change necessary? We should never set self.from
to _0
, right?
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.
@bors r+ |
📌 Commit e22cc99 has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#71737 (Miri: run liballoc tests with threads) - rust-lang#71928 (Add strikethrough support to rustdoc) - rust-lang#72048 (Visit move out of `_0` when visiting `return`) - rust-lang#72096 (Make MIR typeck use `LocalDefId` and fix docs) - rust-lang#72128 (strings do not have to be valid UTF-8 any more) Failed merges: r? @ghost
Closes #72032