File tree Expand file tree Collapse file tree 3 files changed +0
-5
lines changed
Expand file tree Collapse file tree 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> {
390390 #[ must_use]
391391 #[ rustc_diagnostic_item = "maybe_uninit_zeroed" ]
392392 #[ 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) ]
396393 #[ rustc_const_stable( feature = "const_maybe_uninit_zeroed" , since = "1.75.0" ) ]
397394 pub const fn zeroed ( ) -> MaybeUninit < T > {
398395 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 {
844844#[ must_use]
845845#[ stable( feature = "ptr_from_ref" , since = "1.76.0" ) ]
846846#[ rustc_const_stable( feature = "ptr_from_ref" , since = "1.76.0" ) ]
847- #[ rustc_allow_const_fn_unstable( const_mut_refs) ]
848847#[ rustc_never_returns_null_ptr]
849848pub const fn from_mut < T : ?Sized > ( r : & mut T ) -> * mut T {
850849 r
Original file line number Diff line number Diff line change @@ -764,7 +764,6 @@ impl<T> [T] {
764764 /// ```
765765 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
766766 #[ rustc_const_stable( feature = "const_ptr_offset" , since = "1.61.0" ) ]
767- #[ rustc_allow_const_fn_unstable( const_mut_refs) ]
768767 #[ rustc_never_returns_null_ptr]
769768 #[ inline( always) ]
770769 #[ must_use]
You can’t perform that action at this time.
0 commit comments