Skip to content

Add more description for from_raw_parts's unsafety #26740

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
Jul 3, 2015

Conversation

steveklabnik
Copy link
Member

Fixes #26737.

@rust-highfive
Copy link
Contributor

r? @huonw

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

@Gankra
Copy link
Contributor

Gankra commented Jul 2, 2015

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jul 2, 2015

📌 Commit 95ccee3 has been approved by Gankro

///
/// * We call `Vec::from_raw_parts` to get a `Vec<u8>`. Therefore, this
/// function inherits all of its unsafety, see [its
/// documentation](../collections/string/struct.String.html#method.from_raw_parts)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this link to std?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, possibly, yes. I just looked at the URLs and compared them... also this is to String, not Vec, which I looked at like five times, sigh

@steveklabnik
Copy link
Member Author

@bors: r=gankro rollup

@bors
Copy link
Collaborator

bors commented Jul 2, 2015

📌 Commit 57eed53 has been approved by gankro

@bors
Copy link
Collaborator

bors commented Jul 3, 2015

⌛ Testing commit 57eed53 with merge 4c246ec...

bors added a commit that referenced this pull request Jul 3, 2015
@bors bors merged commit 57eed53 into rust-lang:master Jul 3, 2015
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