1
Fork 0

Rollup merge of #53462 - estk:doc-Box_into_raw, r=steveklabnik

Document Box::into_raw returns non-null ptr

Closes  #52806.
This commit is contained in:
kennytm 2018-08-21 11:09:03 +08:00
commit fed4298aed
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C

View file

@ -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