Skip to content

Don't bug when taking discriminant of generator during dataflow#69562

Merged
bors merged 1 commit intorust-lang:masterfrom
ecstatic-morse:dataflow-generator-discriminant
Mar 1, 2020
Merged

Don't bug when taking discriminant of generator during dataflow#69562
bors merged 1 commit intorust-lang:masterfrom
ecstatic-morse:dataflow-generator-discriminant

Conversation

@ecstatic-morse
Copy link
Contributor

@ecstatic-morse ecstatic-morse commented Feb 28, 2020

The proper fix for rust-lang/rust-clippy#5239. Rvalue::Discriminant is used on generators as well as enums. This didn't cause a test failure in rustc since we don't need to do any dataflow passes until after the generator transform that adds the Rvalue::Discriminant.

This required a small refactoring. diff -w is beneficial.

r? @oli-obk
cc @JohnTitor

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

5 participants