]> git.lizzy.rs Git - rust.git/blobdiff - src/liballoc/string.rs
Remove unchecked inline attribute, remove unused functions, make chache mod private...
[rust.git] / src / liballoc / string.rs
index 0e5746d0d9df0e6e5f05008b68f164be3999ce3e..f7dff4c21f7c4343bdb79759ecf7a4755d38b720 100644 (file)
@@ -687,7 +687,7 @@ pub fn into_raw_parts(self) -> (*mut u8, usize, usize) {
     /// checked:
     ///
     /// * The memory at `ptr` needs to have been previously allocated by the
-    ///   same allocator the standard library uses.
+    ///   same allocator the standard library uses, with a required alignment of exactly 1.
     /// * `length` needs to be less than or equal to `capacity`.
     /// * `capacity` needs to be the correct value.
     ///