@@ -622,7 +622,7 @@ impl<T> MaybeUninit<T> {
622
622
/// // `x` had not been initialized yet, so this last line caused undefined behavior. ⚠️
623
623
/// ```
624
624
#[ stable( feature = "maybe_uninit" , since = "1.36.0" ) ]
625
- #[ rustc_const_stable( feature = "const_maybe_uninit_assume_init " , since = "1.59.0" ) ]
625
+ #[ rustc_const_stable( feature = "const_maybe_uninit_assume_init_by_value " , since = "1.59.0" ) ]
626
626
#[ inline( always) ]
627
627
#[ rustc_diagnostic_item = "assume_init" ]
628
628
#[ track_caller]
@@ -788,7 +788,7 @@ impl<T> MaybeUninit<T> {
788
788
/// }
789
789
/// ```
790
790
#[ stable( feature = "maybe_uninit_ref" , since = "1.55.0" ) ]
791
- #[ rustc_const_stable( feature = "const_maybe_uninit_assume_init " , since = "1.59.0" ) ]
791
+ #[ rustc_const_stable( feature = "const_maybe_uninit_assume_init_ref " , since = "1.59.0" ) ]
792
792
#[ inline( always) ]
793
793
pub const unsafe fn assume_init_ref ( & self ) -> & T {
794
794
// SAFETY: the caller must guarantee that `self` is initialized.
@@ -905,7 +905,7 @@ impl<T> MaybeUninit<T> {
905
905
/// };
906
906
/// ```
907
907
#[ stable( feature = "maybe_uninit_ref" , since = "1.55.0" ) ]
908
- #[ rustc_const_unstable( feature = "const_maybe_uninit_assume_init_mut " , issue = "none" ) ]
908
+ #[ rustc_const_unstable( feature = "const_maybe_uninit_assume_init " , issue = "none" ) ]
909
909
#[ inline( always) ]
910
910
pub const unsafe fn assume_init_mut ( & mut self ) -> & mut T {
911
911
// SAFETY: the caller must guarantee that `self` is initialized.
@@ -991,7 +991,7 @@ impl<T> MaybeUninit<T> {
991
991
///
992
992
/// [`assume_init_mut`]: MaybeUninit::assume_init_mut
993
993
#[ unstable( feature = "maybe_uninit_slice" , issue = "63569" ) ]
994
- #[ rustc_const_unstable( feature = "const_maybe_uninit_assume_init_mut " , issue = "none" ) ]
994
+ #[ rustc_const_unstable( feature = "const_maybe_uninit_assume_init " , issue = "none" ) ]
995
995
#[ inline( always) ]
996
996
pub const unsafe fn slice_assume_init_mut ( slice : & mut [ Self ] ) -> & mut [ T ] {
997
997
// SAFETY: similar to safety notes for `slice_get_ref`, but we have a
0 commit comments