about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorEvan Simmons <esims89@gmail.com>2018-08-17 21:21:00 -0600
committerEvan Simmons <esims89@gmail.com>2018-08-20 10:56:16 -0600
commitde35b66783278a16d2de35ddcc11b397be04c473 (patch)
tree92efb2bbfa8ac53189422714a4958ea2a4b6441c /src/liballoc
parent4d5ef325e060743cba2ef587912f40b8b3b87cc4 (diff)
downloadrust-de35b66783278a16d2de35ddcc11b397be04c473.tar.gz
rust-de35b66783278a16d2de35ddcc11b397be04c473.zip
Document Box::into_raw returns non-null ptr
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index 08db5136d04..105bf855013 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -126,7 +126,9 @@ impl<T: ?Sized> Box<T> {
         Box(Unique::new_unchecked(raw))
     }
 
-    /// Consumes the `Box`, returning the wrapped raw pointer.
+    /// Consumes the `Box`, returning a wrapped raw pointer.
+    ///
+    /// The pointer will be properly aligned and non-null.
     ///
     /// After calling this function, the caller is responsible for the
     /// memory previously managed by the `Box`. In particular, the