]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #96222 - jmaargh:john-mark/clarify-from-raw-parts-docs, r=JohnTitor
authorYuki Okushi <jtitor@2k36.org>
Mon, 2 May 2022 01:41:55 +0000 (10:41 +0900)
committerGitHub <noreply@github.com>
Mon, 2 May 2022 01:41:55 +0000 (10:41 +0900)
commit1785f1549cec9eb7947e204d6146c20b2410c40d
tree080998b354b3a40362d09f6146375b8f4fca22c3
parentddfc65dae0982c25c7cb8f60874e249dd2d071f1
parent4dda047de346ae68fa760548f7ae63e3ae736146
Rollup merge of #96222 - jmaargh:john-mark/clarify-from-raw-parts-docs, r=JohnTitor

Clarify docs for `from_raw_parts` on `Vec` and `String`

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.
library/alloc/src/vec/mod.rs