-
Notifications
You must be signed in to change notification settings - Fork 13k
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 discriminant type in generator transform #72502
Conversation
That's right, it's always u32 currently (although the memory layout code chooses the smallest integer that fits all states). @bors r+ rollup |
📌 Commit 89aac16 has been approved by |
@bors r- |
Ah, yeah. Probably some of the mir-opt output has changed. |
This comment has been minimized.
This comment has been minimized.
@jonas-schievink okay the PR now includes the blessed tests. |
@bors r+ |
📌 Commit b388f96 has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#71618 (Preserve substitutions when making trait obligations for suggestions) - rust-lang#72092 (Unblock font loading in rustdoc.css) - rust-lang#72400 (Add missing ASM arena declarations to librustc_middle) - rust-lang#72489 (Fix ice-72487) - rust-lang#72502 (fix discriminant type in generator transform) Failed merges: r? @ghost
The generator transform assumed that the discriminant type is always
isize
, which is not correct, leading to ICEs in Miri when some extra sanity checking got enabled.r? @jonas-schievink @eddyb