-
Notifications
You must be signed in to change notification settings - Fork 13.6k
fix #[loop_match]
on diverging loop
#144783
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
base: master
Are you sure you want to change the base?
Conversation
this generated invalid MIR before
13d09ba
to
36bf31d
Compare
r? compiler given that this was debugged by the both of us. |
I guess but also we have all the context here, it's a one-liner, and has no consequences outside of loop-match code. |
Some changes occurred in match lowering cc @Nadrieril |
let scrutinee_place_builder = | ||
unpack!(body_block = this.as_place_builder(body_block, scrutinee)); | ||
let scrutinee_span = this.thir.exprs[scrutinee].span; | ||
let scrutinee_place_builder = unpack!( | ||
body_block = this.lower_scrutinee(body_block, scrutinee, scrutinee_span) | ||
); | ||
|
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.
this change adds a place mention of the scrutinee that was missing before.
tracking issue: #132306
fixes #144492
fixes #143806
fixes #144493
fixes #144781
this generated invalid MIR before
r? @bjorn3