Skip to content

trans: don't misuse C_nil for ZSTs other than (). #34167

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
Jun 9, 2016

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Jun 8, 2016

C_nil is actually C_null for () so TempRef::new_operand was treating all ZSTs as ().
This should allow running Servo with RUSTFLAGS=-Zorbit, assuming there are no other bugs.

@rust-highfive
Copy link
Contributor

r? @jroesch

(rust_highfive has picked a reviewer for you, use r? to override)

@eddyb eddyb force-pushed the fix-pairs-for-real branch from 78aa242 to 22fa769 Compare June 8, 2016 21:34
@nikomatsakis
Copy link
Contributor

@bors r+ p=1

@bors
Copy link
Collaborator

bors commented Jun 8, 2016

📌 Commit 22fa769 has been approved by nikomatsakis

@bors
Copy link
Collaborator

bors commented Jun 8, 2016

⌛ Testing commit 22fa769 with merge 34505e2...

bors added a commit that referenced this pull request Jun 8, 2016
trans: don't misuse C_nil for ZSTs other than ().

`C_nil` is actually `C_null` for `()` so `TempRef::new_operand` was treating all ZSTs as `()`.
This should allow running Servo with `RUSTFLAGS=-Zorbit`, assuming there are no other bugs.
@bors bors merged commit 22fa769 into rust-lang:master Jun 9, 2016
@eddyb eddyb deleted the fix-pairs-for-real branch June 9, 2016 06:32
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.

5 participants