-
Notifications
You must be signed in to change notification settings - Fork 13.4k
fix discriminant type in generator transform #72502
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
May 24, 2020
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
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
S-waiting-on-bors
Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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