Skip to content
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

Merged
merged 7 commits into from
Feb 22, 2020
Merged

Fix generator miscompilations #69302

merged 7 commits into from
Feb 22, 2020

Conversation

jonas-schievink
Copy link
Contributor

Fixes #69039

r? @Zoxc

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 19, 2020
@@ -519,12 +519,12 @@ macro_rules! make_mir_visitor {
resume_arg,
drop: _,
} => {
self.visit_operand(value, source_location);
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@Zoxc
Copy link
Contributor

Zoxc commented Feb 21, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Feb 21, 2020

📌 Commit fc2702c has been approved by Zoxc

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 21, 2020
@bors
Copy link
Contributor

bors commented Feb 22, 2020

⌛ Testing commit fc2702c with merge d735ede...

@bors
Copy link
Contributor

bors commented Feb 22, 2020

☀️ Test successful - checks-azure
Approved by: Zoxc
Pushing d735ede to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Feb 22, 2020
@bors bors merged commit d735ede into rust-lang:master Feb 22, 2020
@jonas-schievink jonas-schievink deleted the yield-needs-storage branch February 27, 2020 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using a String as a generator resume argument causes a segfault
4 participants