-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Clarify docs for from_raw_parts
on Vec
and String
#96222
Clarify docs for from_raw_parts
on Vec
and String
#96222
Conversation
Original safety explanation for from_raw_parts was unclear on safety for consuming a C string. This clarifies when doing so is safe.
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @joshtriplett (or someone else) soon. Please see the contribution instructions for more information. |
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.
LGTM, thanks!
r? @JohnTitor @bors r+ rollup+ |
📌 Commit 4dda047 has been approved by |
Err, @bors rollup |
Rollup of 7 pull requests Successful merges: - rust-lang#94126 (Classify BinaryHeap & LinkedList unit tests as such) - rust-lang#96222 (Clarify docs for `from_raw_parts` on `Vec` and `String`) - rust-lang#96499 (Make it possible to write doctests for bootstrap) - rust-lang#96567 (Fix docs for u32 and i32 logs func) - rust-lang#96568 (std::fmt: Various fixes and improvements to documentation) - rust-lang#96571 (Add a bathroom stall to weird expressions test) - rust-lang#96610 (Update browser-ui-test version to 0.9.0) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Closes #95427
Original safety explanation for
from_raw_parts
was unclear on safety for consuming a C string. This clarifies when doing so is safe.