We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac0ae2 commit b0b09f0Copy full SHA for b0b09f0
library/core/src/mem/maybe_uninit.rs
@@ -291,7 +291,7 @@ impl<T> MaybeUninit<T> {
291
/// [`assume_init`]: MaybeUninit::assume_init
292
#[stable(feature = "maybe_uninit", since = "1.36.0")]
293
#[rustc_const_stable(feature = "const_maybe_uninit", since = "1.36.0")]
294
- #[must_use = "use `ManuallyDrop` or `forget` to avoid running drop code"]
+ #[must_use = "use `forget` to avoid running Drop code"]
295
#[inline(always)]
296
pub const fn new(val: T) -> MaybeUninit<T> {
297
MaybeUninit { value: ManuallyDrop::new(val) }
0 commit comments