File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 131
131
#![ feature( const_ipv6) ]
132
132
#![ feature( const_likely) ]
133
133
#![ feature( const_make_ascii) ]
134
- #![ feature( const_maybe_uninit_assume_init) ]
135
134
#![ feature( const_nonnull_new) ]
136
135
#![ feature( const_num_midpoint) ]
137
136
#![ feature( const_option) ]
Original file line number Diff line number Diff line change @@ -913,7 +913,11 @@ impl<T> MaybeUninit<T> {
913
913
/// };
914
914
/// ```
915
915
#[ stable( feature = "maybe_uninit_ref" , since = "1.55.0" ) ]
916
- #[ rustc_const_unstable( feature = "const_maybe_uninit_assume_init" , issue = "none" ) ]
916
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
917
+ #[ rustc_const_stable(
918
+ feature = "const_maybe_uninit_assume_init" ,
919
+ since = "CURRENT_RUSTC_VERSION"
920
+ ) ]
917
921
#[ inline( always) ]
918
922
pub const unsafe fn assume_init_mut ( & mut self ) -> & mut T {
919
923
// SAFETY: the caller must guarantee that `self` is initialized.
@@ -999,7 +1003,8 @@ impl<T> MaybeUninit<T> {
999
1003
///
1000
1004
/// [`assume_init_mut`]: MaybeUninit::assume_init_mut
1001
1005
#[ unstable( feature = "maybe_uninit_slice" , issue = "63569" ) ]
1002
- #[ rustc_const_unstable( feature = "const_maybe_uninit_assume_init" , issue = "none" ) ]
1006
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
1007
+ #[ rustc_const_unstable( feature = "maybe_uninit_slice" , issue = "63569" ) ]
1003
1008
#[ inline( always) ]
1004
1009
pub const unsafe fn slice_assume_init_mut ( slice : & mut [ Self ] ) -> & mut [ T ] {
1005
1010
// SAFETY: similar to safety notes for `slice_get_ref`, but we have a
You can’t perform that action at this time.
0 commit comments