File tree 3 files changed +0
-5
lines changed
3 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -390,9 +390,6 @@ impl<T> MaybeUninit<T> {
390
390
#[ must_use]
391
391
#[ rustc_diagnostic_item = "maybe_uninit_zeroed" ]
392
392
#[ stable( feature = "maybe_uninit" , since = "1.36.0" ) ]
393
- // These are OK to allow since we do not leak &mut to user-visible API
394
- #[ rustc_allow_const_fn_unstable( const_mut_refs) ]
395
- #[ rustc_allow_const_fn_unstable( const_ptr_write) ]
396
393
#[ rustc_const_stable( feature = "const_maybe_uninit_zeroed" , since = "1.75.0" ) ]
397
394
pub const fn zeroed ( ) -> MaybeUninit < T > {
398
395
let mut u = MaybeUninit :: < T > :: uninit ( ) ;
Original file line number Diff line number Diff line change @@ -844,7 +844,6 @@ pub const fn from_ref<T: ?Sized>(r: &T) -> *const T {
844
844
#[ must_use]
845
845
#[ stable( feature = "ptr_from_ref" , since = "1.76.0" ) ]
846
846
#[ rustc_const_stable( feature = "ptr_from_ref" , since = "1.76.0" ) ]
847
- #[ rustc_allow_const_fn_unstable( const_mut_refs) ]
848
847
#[ rustc_never_returns_null_ptr]
849
848
pub const fn from_mut < T : ?Sized > ( r : & mut T ) -> * mut T {
850
849
r
Original file line number Diff line number Diff line change @@ -764,7 +764,6 @@ impl<T> [T] {
764
764
/// ```
765
765
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
766
766
#[ rustc_const_stable( feature = "const_ptr_offset" , since = "1.61.0" ) ]
767
- #[ rustc_allow_const_fn_unstable( const_mut_refs) ]
768
767
#[ rustc_never_returns_null_ptr]
769
768
#[ inline( always) ]
770
769
#[ must_use]
You can’t perform that action at this time.
0 commit comments