Skip to content

rustc_trans: support ZST indexing involving uninhabited types. #47009

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

Merged
merged 1 commit into from
Dec 27, 2017

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Dec 26, 2017

Fixes #46855 in a minimal way. I decided against supporting non-memory Rvalue::Len in this PR (see #46855 (comment)), as PlaceContext::Inspect is also used for Rvalue::Discriminant.

r? @arielb1

@arielb1
Copy link
Contributor

arielb1 commented Dec 26, 2017

@bors r+

@bors
Copy link
Collaborator

bors commented Dec 26, 2017

📌 Commit 57bb8ab has been approved by arielb1

@kennytm kennytm added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Dec 27, 2017
@bors
Copy link
Collaborator

bors commented Dec 27, 2017

⌛ Testing commit 57bb8ab with merge 63efff5...

bors added a commit that referenced this pull request Dec 27, 2017
rustc_trans: support ZST indexing involving uninhabited types.

Fixes #46855 in a minimal way. I decided against supporting non-memory `Rvalue::Len` in this PR (see #46855 (comment)), as `PlaceContext::Inspect` is also used for `Rvalue::Discriminant`.

r? @arielb1
@bors
Copy link
Collaborator

bors commented Dec 27, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: arielb1
Pushing 63efff5 to master...

@bors bors merged commit 57bb8ab into rust-lang:master Dec 27, 2017
@eddyb eddyb deleted the issue-46855 branch December 27, 2017 15:45
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.

4 participants