File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -317,12 +317,14 @@ impl<T: ?Sized> Box<T> {
317
317
/// # Examples
318
318
///
319
319
/// ```
320
+ /// #![feature(box_into_raw_non_null)]
321
+ ///
320
322
/// fn main() {
321
323
/// let x = Box::new(5);
322
324
/// let ptr = Box::into_raw_non_null(x);
323
325
/// }
324
326
/// ```
325
- #[ unstable( feature = "nonnull " , issue = "27730 " ) ]
327
+ #[ unstable( feature = "box_into_raw_non_null " , issue = "47336 " ) ]
326
328
#[ inline]
327
329
pub fn into_raw_non_null ( b : Box < T > ) -> NonNull < T > {
328
330
Box :: into_unique ( b) . into ( )
Original file line number Diff line number Diff line change 84
84
#![ cfg_attr( test, feature( rand, test) ) ]
85
85
#![ feature( allow_internal_unstable) ]
86
86
#![ feature( ascii_ctype) ]
87
+ #![ feature( box_into_raw_non_null) ]
87
88
#![ feature( box_patterns) ]
88
89
#![ feature( box_syntax) ]
89
90
#![ feature( cfg_target_has_atomic) ]
You can’t perform that action at this time.
0 commit comments