Skip to content

Commit 4ce2199

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

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
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();

0 commit comments

Comments
 (0)