Skip to content

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Dec 1, 2017

This PR fixes a potential problem where a packed newtype of a pair was also considered a pair, even though it didn't have the required alignment of the pair.
cc @oli-obk It's possible miri hit something like this, with an unstable feature, but it's more general.

@eddyb eddyb added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Dec 1, 2017
@rust-highfive
Copy link
Contributor

r? @petrochenkov

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

@kennytm kennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 1, 2017
@eddyb eddyb force-pushed the scalar-pair-unpacking branch from 632afcd to 081d733 Compare December 1, 2017 17:56
@eddyb
Copy link
Member Author

eddyb commented Dec 1, 2017

r? @nikomatsakis or @arielb1

@arielb1
Copy link
Contributor

arielb1 commented Dec 3, 2017

@bors r+

@bors
Copy link
Collaborator

bors commented Dec 3, 2017

📌 Commit d455955 has been approved by arielb1

@bors
Copy link
Collaborator

bors commented Dec 3, 2017

⌛ Testing commit d455955 with merge 7e25139...

bors added a commit that referenced this pull request Dec 3, 2017
rustc: don't unpack newtypes of scalar-pairs with mismatched alignment.

This PR fixes a potential problem where a packed newtype of a pair was also considered a pair, even though it didn't have the required alignment of the pair.
cc @oli-obk It's possible miri hit something like this, with an unstable feature, but it's more general.
@bors
Copy link
Collaborator

bors commented Dec 3, 2017

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

@bors bors merged commit d455955 into rust-lang:master Dec 3, 2017
@eddyb eddyb deleted the scalar-pair-unpacking branch December 3, 2017 11:50
@michaelwoerister michaelwoerister added beta-accepted Accepted for backporting to the compiler in the beta channel. and removed beta-nominated Nominated for backporting to the compiler in the beta channel. labels Dec 7, 2017
bors added a commit that referenced this pull request Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-accepted Accepted for backporting to the compiler in the beta channel. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants