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

improve transmute and Vec::from_raw_parts docs #69582

Merged
merged 3 commits into from
Feb 29, 2020

Conversation

RalfJung
Copy link
Member

I think this fixes #64073. @Shnatsel please let me know if this is less confusing. :)

@rust-highfive
Copy link
Collaborator

r? @kennytm

(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
@RalfJung RalfJung changed the title Vec parts improve transmute and Vec::from_raw_parts docs Feb 29, 2020
src/libcore/intrinsics.rs Outdated Show resolved Hide resolved
@Centril
Copy link
Contributor

Centril commented Feb 29, 2020

r? @Centril r=me with nit fixed.

@rust-highfive rust-highfive assigned Centril and unassigned kennytm Feb 29, 2020
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
@RalfJung
Copy link
Member Author

@bors r=Centril rollup

@bors
Copy link
Contributor

bors commented Feb 29, 2020

📌 Commit b6e847c has been approved by Centril

@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
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 015bb74 into rust-lang:master Feb 29, 2020
@RalfJung RalfJung deleted the vec-parts branch March 1, 2020 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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.

Confusing documentation on mem::transmute
5 participants