Skip to content

Commit

Permalink
alloc: Mark Box::into_unique with #[doc(hidden)]
Browse files Browse the repository at this point in the history
  • Loading branch information
Daiki Mizukami committed Apr 11, 2018
1 parent f817d19 commit 54d6bcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/liballoc/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ impl<T: ?Sized> Box<T> {

#[unstable(feature = "ptr_internals", issue = "0", reason = "use into_raw_non_null instead")]
#[inline]
#[doc(hidden)]
pub fn into_unique(b: Box<T>) -> Unique<T> {
let unique = b.0;
mem::forget(b);
Expand Down

0 comments on commit 54d6bcb

Please sign in to comment.