-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Conversation
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ rollup |
📌 Commit 95ccee3 has been approved by |
/// | ||
/// * 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) |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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
@bors: r=gankro rollup |
📌 Commit 57eed53 has been approved by |
Fixes #26737.