File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 110
110
#![ feature( const_cow_is_borrowed) ]
111
111
#![ feature( const_eval_select) ]
112
112
#![ feature( const_heap) ]
113
- #![ feature( const_maybe_uninit_as_mut_ptr) ]
114
113
#![ feature( const_maybe_uninit_write) ]
115
114
#![ feature( const_option) ]
116
115
#![ feature( const_pin) ]
Original file line number Diff line number Diff line change 132
132
#![ feature( const_ipv4) ]
133
133
#![ feature( const_ipv6) ]
134
134
#![ feature( const_likely) ]
135
- #![ feature( const_maybe_uninit_as_mut_ptr) ]
136
135
#![ feature( const_maybe_uninit_assume_init) ]
137
136
#![ feature( const_nonnull_new) ]
138
137
#![ feature( const_num_midpoint) ]
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,11 @@ 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(
573
+ feature = "const_maybe_uninit_as_mut_ptr" ,
574
+ since = "CURRENT_RUSTC_VERSION"
575
+ ) ]
576
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
574
577
#[ inline( always) ]
575
578
pub const fn as_mut_ptr ( & mut self ) -> * mut T {
576
579
// `MaybeUninit` and `ManuallyDrop` are both `repr(transparent)` so we can cast the pointer.
Original file line number Diff line number Diff line change 26
26
#![ feature( const_ipv4) ]
27
27
#![ feature( const_ipv6) ]
28
28
#![ feature( const_likely) ]
29
- #![ feature( const_maybe_uninit_as_mut_ptr) ]
30
29
#![ feature( const_nonnull_new) ]
31
30
#![ feature( const_option) ]
32
31
#![ feature( const_option_ext) ]
You can’t perform that action at this time.
0 commit comments