Skip to content

improve DiscriminantKind handling#74276

Merged
bors merged 1 commit intorust-lang:masterfrom
lcnr:discriminant-kind-what
Jul 16, 2020
Merged

improve DiscriminantKind handling#74276
bors merged 1 commit intorust-lang:masterfrom
lcnr:discriminant-kind-what

Conversation

@lcnr
Copy link
Copy Markdown
Contributor

@lcnr lcnr commented Jul 12, 2020

Adds a lang item discriminant_type for the associated type DiscriminantKind::Discriminant.

Changes the discriminant of generators from i32 to u32, which should not be observable to fix an
oversight where MIR was using u32 and codegen and typeck used i32.

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.

6 participants