Skip to content
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

rustc: don't use union layouts for tagged union enums. #47007

Merged
merged 1 commit into from
Dec 27, 2017

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Dec 25, 2017

Fixes #46897, fixes #43517 (AFAICT from the testcases).
This PR doesn't add any testcases, we should try to at least get perf ones (cc @Mark-Simulacrum).
I couldn't find an example in those issues where the choice of LLVM array vs struct (with N identical fields) for padding filler types is still needed, on top of this change, to prevent excessive LLVM sinking.

r? @arielb1

@arielb1
Copy link
Contributor

arielb1 commented Dec 26, 2017

Stop the fire:

@bors r+

@bors
Copy link
Contributor

bors commented Dec 26, 2017

📌 Commit 97228f5 has been approved by arielb1

@bors
Copy link
Contributor

bors commented Dec 27, 2017

⌛ Testing commit 97228f5 with merge 71ed31f...

bors added a commit that referenced this pull request Dec 27, 2017
rustc: don't use union layouts for tagged union enums.

Fixes #46897, fixes #43517 (AFAICT from the testcases).
This PR doesn't add any testcases, we should try to at least get perf ones (cc @Mark-Simulacrum).
I couldn't find an example in those issues where the choice of LLVM array vs struct (with N identical fields) for padding filler types is still needed, *on top of* this change, to prevent excessive LLVM sinking.

r? @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
Contributor

bors commented Dec 27, 2017

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

@bors bors merged commit 97228f5 into rust-lang:master Dec 27, 2017
@eddyb eddyb deleted the issue-46897 branch December 27, 2017 12:58
# 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.
Projects
None yet
4 participants