Skip to content

Commit 4275334

Browse files
committed
remove some no-longer-needed rustc_allow_const_fn_unstable
1 parent a8e1186 commit 4275334

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

library/core/src/mem/maybe_uninit.rs

-3
Original file line numberDiff line numberDiff 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();

library/core/src/ptr/mod.rs

-1
Original file line numberDiff line numberDiff 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]
849848
pub const fn from_mut<T: ?Sized>(r: &mut T) -> *mut T {
850849
r

library/core/src/slice/mod.rs

-1
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)