Skip to content

rustc: don't unpack newtypes of scalar-pairs with mismatched alignment. - #46428

Merged
bors merged 1 commit into
rust-lang:masterfrom
eddyb:scalar-pair-unpacking
Dec 3, 2017
Merged

rustc: don't unpack newtypes of scalar-pairs with mismatched alignment.#46428
bors merged 1 commit into
rust-lang:masterfrom
eddyb:scalar-pair-unpacking

Conversation

@eddyb

@eddybeddyb commented Dec 1, 2017

Copy link
Copy Markdown
Contributor

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.

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

Copy link
Copy Markdown
Contributor

r? @petrochenkov

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

@kennytmkennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 1, 2017
@eddyb
eddybforce-pushed the scalar-pair-unpacking branch from 632afcd to 081d733CompareDecember 1, 2017 17:56
@eddyb

eddyb commented Dec 1, 2017

Copy link
Copy Markdown
ContributorAuthor

r? @nikomatsakis or @arielb1

@arielb1

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Dec 3, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit d455955 has been approved by arielb1

@bors

bors commented Dec 3, 2017

Copy link
Copy Markdown
Collaborator

⌛ 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

bors commented Dec 3, 2017

Copy link
Copy Markdown
Collaborator

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

@bors
bors merged commit d455955 into rust-lang:masterDec 3, 2017
@eddyb
eddyb deleted the scalar-pair-unpacking branch December 3, 2017 11:50
@michaelwoeristermichaelwoerister 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-acceptedAccepted for backporting to the compiler in the beta channel.S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@eddyb@rust-highfive@arielb1@bors@kennytm@nikomatsakis@michaelwoerister@petrochenkov