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

adjust for rustc changes #1178

Merged
merged 1 commit into from
Mar 2, 2020
Merged

adjust for rustc changes #1178

merged 1 commit into from
Mar 2, 2020

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Feb 18, 2020

The Miri side of rust-lang/rust#69257

bors added a commit to rust-lang/rust that referenced this pull request Mar 2, 2020
Adjust Miri value visitor, and doc-comment layout components

I realized that I still didn't have quite the right intuition for how our `LayoutDetails` work, so I had to adjust the Miri value visitor to the things I understood better now. I also added some doc-comments to `LayoutDetails` as a hopefully canonical place to note such things.

The main visitor change is that we *first* look at all the fields (according to `FieldPlacement`), and *then* check the variants and handle `Multiple` appropriately. I did not quite realize how orthogonal "fields" and "variants" are.
I also moved the check for the scalar ABI to *after* checking all the fields; this leads to better (more type-driven) error messages.

And it looks like we can finally remove that magic hack for `ty::Generator`. :D

r? @oli-obk for the Miri/visitor changes and @eddyb for the layout docs
The Miri PR is at: rust-lang/miri#1178
@RalfJung
Copy link
Member Author

RalfJung commented Mar 2, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Mar 2, 2020

📌 Commit 88c45f9 has been approved by RalfJung

@bors
Copy link
Contributor

bors commented Mar 2, 2020

⌛ Testing commit 88c45f9 with merge 7cdcdec...

@bors
Copy link
Contributor

bors commented Mar 2, 2020

☀️ Test successful - checks-travis, status-appveyor
Approved by: RalfJung
Pushing 7cdcdec to master...

@bors bors merged commit 7cdcdec into rust-lang:master Mar 2, 2020
@RalfJung RalfJung deleted the rustup-visitor branch March 2, 2020 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants