-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Fix generator miscompilations #69302
Conversation
@@ -519,12 +519,12 @@ macro_rules! make_mir_visitor { | |||
resume_arg, | |||
drop: _, | |||
} => { | |||
self.visit_operand(value, source_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.
Where does this reordering matter?
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.
It doesn't seem to matter from what I've seen, but it aligns the order of Yield
with the one for Call
. That seems less surprising to me.
@bors r+ |
📌 Commit fc2702c has been approved by |
☀️ Test successful - checks-azure |
Fixes #69039
r? @Zoxc