Skip to content

fix aliasing violation in align_to_mut #69581

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

Merged
merged 1 commit into from
Feb 29, 2020
Merged

Conversation

RalfJung
Copy link
Member

Fixes #68549

I decided to add the testcase here to make it all one PR, but if you prefer I can also add that test case in the Miri repo instead.

@rust-highfive
Copy link
Contributor

r? @shepmaster

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 29, 2020
@rust-highfive

This comment has been minimized.

@Centril
Copy link
Contributor

Centril commented Feb 29, 2020

r? @Centril @bors r+

@bors
Copy link
Collaborator

bors commented Feb 29, 2020

📌 Commit c34451f has been approved by Centril

@rust-highfive rust-highfive assigned Centril and unassigned shepmaster Feb 29, 2020
@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 29, 2020
@nagisa
Copy link
Member

nagisa commented Feb 29, 2020

Thanks for figuring this out @RalfJung

bors added a commit that referenced this pull request Feb 29, 2020
Rollup of 7 pull requests

Successful merges:

 - #69504 (Use assert_ne in hash tests)
 - #69571 (remove unneeded .as_ref() calls.)
 - #69572 (use .iter() instead of .into_iter() on references)
 - #69581 (fix aliasing violation in align_to_mut)
 - #69582 (improve transmute and Vec::from_raw_parts docs)
 - #69584 (Correct comment to match behavior)
 - #69587 (rustc_parse: Tweak the function parameter name check)

Failed merges:

r? @ghost
@bors bors merged commit 02381db into rust-lang:master Feb 29, 2020
@RalfJung RalfJung deleted the align_to_mut branch March 1, 2020 09:20
# 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
Development

Successfully merging this pull request may close these issues.

miri:error printing the return value of align_to_mut
6 participants