File tree 3 files changed +1
-4
lines changed
3 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ impl<T: ?Sized> NonNull<T> {
217
217
/// }
218
218
/// ```
219
219
#[ stable( feature = "nonnull" , since = "1.25.0" ) ]
220
- #[ rustc_const_unstable ( feature = "const_nonnull_new" , issue = "93235 " ) ]
220
+ #[ rustc_const_stable ( feature = "const_nonnull_new" , since = "CURRENT_RUSTC_VERSION " ) ]
221
221
#[ inline]
222
222
pub const fn new ( ptr : * mut T ) -> Option < Self > {
223
223
if !ptr. is_null ( ) {
Original file line number Diff line number Diff line change @@ -92,8 +92,6 @@ impl<T: ?Sized> Unique<T> {
92
92
93
93
/// Creates a new `Unique` if `ptr` is non-null.
94
94
#[ inline]
95
- // rustc_const_unstable attribute can be removed when `const_nonnull_new` is stable
96
- #[ rustc_const_unstable( feature = "ptr_internals" , issue = "none" ) ]
97
95
pub const fn new ( ptr : * mut T ) -> Option < Self > {
98
96
if let Some ( pointer) = NonNull :: new ( ptr) {
99
97
Some ( Unique { pointer, _marker : PhantomData } )
Original file line number Diff line number Diff line change 15
15
#![ feature( clone_to_uninit) ]
16
16
#![ feature( const_black_box) ]
17
17
#![ feature( const_eval_select) ]
18
- #![ feature( const_nonnull_new) ]
19
18
#![ feature( const_swap) ]
20
19
#![ feature( const_trait_impl) ]
21
20
#![ feature( core_intrinsics) ]
You can’t perform that action at this time.
0 commit comments