We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8e1186 commit 4ce2199Copy full SHA for 4ce2199
library/core/src/mem/maybe_uninit.rs
@@ -390,9 +390,6 @@ impl<T> MaybeUninit<T> {
390
#[must_use]
391
#[rustc_diagnostic_item = "maybe_uninit_zeroed"]
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
#[rustc_const_stable(feature = "const_maybe_uninit_zeroed", since = "1.75.0")]
397
pub const fn zeroed() -> MaybeUninit<T> {
398
let mut u = MaybeUninit::<T>::uninit();
0 commit comments