File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 140140#![ feature( const_option_ext) ]
141141#![ feature( const_pin) ]
142142#![ feature( const_pointer_is_aligned) ]
143- #![ feature( const_ptr_as_ref) ]
144143#![ feature( const_ptr_is_null) ]
145144#![ feature( const_ptr_sub_ptr) ]
146145#![ feature( const_ptr_write) ]
Original file line number Diff line number Diff line change @@ -394,7 +394,8 @@ impl<T: ?Sized> NonNull<T> {
394394 ///
395395 /// [the module documentation]: crate::ptr#safety
396396 #[ stable( feature = "nonnull" , since = "1.25.0" ) ]
397- #[ rustc_const_unstable( feature = "const_ptr_as_ref" , issue = "91822" ) ]
397+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
398+ #[ rustc_const_stable( feature = "const_ptr_as_ref" , since = "CURRENT_RUSTC_VERSION" ) ]
398399 #[ must_use]
399400 #[ inline( always) ]
400401 pub const unsafe fn as_mut < ' a > ( & mut self ) -> & ' a mut T {
Original file line number Diff line number Diff line change 3030#![ feature( const_option_ext) ]
3131#![ feature( const_pin) ]
3232#![ feature( const_pointer_is_aligned) ]
33- #![ feature( const_ptr_as_ref) ]
3433#![ feature( const_ptr_write) ]
3534#![ feature( const_result) ]
3635#![ feature( const_slice_from_ref) ]
You can’t perform that action at this time.
0 commit comments