Skip to content

Commit b0b09f0

Browse files
Update library/core/src/mem/maybe_uninit.rs
Co-authored-by: Josh Triplett <[email protected]>
1 parent 3ac0ae2 commit b0b09f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/mem/maybe_uninit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ impl<T> MaybeUninit<T> {
291291
/// [`assume_init`]: MaybeUninit::assume_init
292292
#[stable(feature = "maybe_uninit", since = "1.36.0")]
293293
#[rustc_const_stable(feature = "const_maybe_uninit", since = "1.36.0")]
294-
#[must_use = "use `ManuallyDrop` or `forget` to avoid running drop code"]
294+
#[must_use = "use `forget` to avoid running Drop code"]
295295
#[inline(always)]
296296
pub const fn new(val: T) -> MaybeUninit<T> {
297297
MaybeUninit { value: ManuallyDrop::new(val) }

0 commit comments

Comments
 (0)