Skip to content

Commit

Permalink
Assign its own tracking issue to Box::into_raw_non_null
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Jan 20, 2018
1 parent 76b686f commit 602a445
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/liballoc/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,14 @@ impl<T: ?Sized> Box<T> {
/// # Examples
///
/// ```
/// #![feature(box_into_raw_non_null)]
///
/// fn main() {
/// let x = Box::new(5);
/// let ptr = Box::into_raw_non_null(x);
/// }
/// ```
#[unstable(feature = "nonnull", issue = "27730")]
#[unstable(feature = "box_into_raw_non_null", issue = "47336")]
#[inline]
pub fn into_raw_non_null(b: Box<T>) -> NonNull<T> {
Box::into_unique(b).into()
Expand Down
1 change: 1 addition & 0 deletions src/liballoc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
#![cfg_attr(test, feature(rand, test))]
#![feature(allow_internal_unstable)]
#![feature(ascii_ctype)]
#![feature(box_into_raw_non_null)]
#![feature(box_patterns)]
#![feature(box_syntax)]
#![feature(cfg_target_has_atomic)]
Expand Down

0 comments on commit 602a445

Please sign in to comment.