File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -393,7 +393,6 @@ impl<T> MaybeUninit<T> {
393
393
// These are OK to allow since we do not leak &mut to user-visible API
394
394
#[ rustc_allow_const_fn_unstable( const_mut_refs) ]
395
395
#[ rustc_allow_const_fn_unstable( const_ptr_write) ]
396
- #[ rustc_allow_const_fn_unstable( const_maybe_uninit_as_mut_ptr) ]
397
396
#[ rustc_const_stable( feature = "const_maybe_uninit_zeroed" , since = "1.75.0" ) ]
398
397
pub const fn zeroed ( ) -> MaybeUninit < T > {
399
398
let mut u = MaybeUninit :: < T > :: uninit ( ) ;
@@ -570,7 +569,8 @@ impl<T> MaybeUninit<T> {
570
569
/// (Notice that the rules around references to uninitialized data are not finalized yet, but
571
570
/// until they are, it is advisable to avoid them.)
572
571
#[ stable( feature = "maybe_uninit" , since = "1.36.0" ) ]
573
- #[ rustc_const_unstable( feature = "const_maybe_uninit_as_mut_ptr" , issue = "75251" ) ]
572
+ #[ rustc_const_stable( feature = "const_maybe_uninit_as_mut_ptr" , since = "CURRENT_RUSTC_VERSION" ) ]
573
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
574
574
#[ inline( always) ]
575
575
pub const fn as_mut_ptr ( & mut self ) -> * mut T {
576
576
// `MaybeUninit` and `ManuallyDrop` are both `repr(transparent)` so we can cast the pointer.
You can’t perform that action at this time.
0 commit comments