Skip to content

Commit 602a445

Browse files
committed
Assign its own tracking issue to Box::into_raw_non_null
#47336
1 parent 76b686f commit 602a445

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/liballoc/boxed.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,14 @@ impl<T: ?Sized> Box<T> {
317317
/// # Examples
318318
///
319319
/// ```
320+
/// #![feature(box_into_raw_non_null)]
321+
///
320322
/// fn main() {
321323
/// let x = Box::new(5);
322324
/// let ptr = Box::into_raw_non_null(x);
323325
/// }
324326
/// ```
325-
#[unstable(feature = "nonnull", issue = "27730")]
327+
#[unstable(feature = "box_into_raw_non_null", issue = "47336")]
326328
#[inline]
327329
pub fn into_raw_non_null(b: Box<T>) -> NonNull<T> {
328330
Box::into_unique(b).into()

src/liballoc/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
#![cfg_attr(test, feature(rand, test))]
8585
#![feature(allow_internal_unstable)]
8686
#![feature(ascii_ctype)]
87+
#![feature(box_into_raw_non_null)]
8788
#![feature(box_patterns)]
8889
#![feature(box_syntax)]
8990
#![feature(cfg_target_has_atomic)]

0 commit comments

Comments
 (0)