diff options
| author | John Kugelman <john@kugelman.name> | 2021-10-11 14:46:08 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-11 14:46:08 -0400 |
| commit | b0b09f0842734b6594dbe3aa24cf4e01edcb9f49 (patch) | |
| tree | dd9d3f9266f5f0d7c6fa86049bc2eddd280a7506 | |
| parent | 3ac0ae21d5c1a8222ad466e3c7c761199e547f1c (diff) | |
| download | rust-b0b09f0842734b6594dbe3aa24cf4e01edcb9f49.tar.gz rust-b0b09f0842734b6594dbe3aa24cf4e01edcb9f49.zip | |
Update library/core/src/mem/maybe_uninit.rs
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
| -rw-r--r-- | library/core/src/mem/maybe_uninit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/mem/maybe_uninit.rs b/library/core/src/mem/maybe_uninit.rs index 6c5fc331837..98c6f99abde 100644 --- a/library/core/src/mem/maybe_uninit.rs +++ b/library/core/src/mem/maybe_uninit.rs @@ -291,7 +291,7 @@ impl<T> MaybeUninit<T> { /// [`assume_init`]: MaybeUninit::assume_init #[stable(feature = "maybe_uninit", since = "1.36.0")] #[rustc_const_stable(feature = "const_maybe_uninit", since = "1.36.0")] - #[must_use = "use `ManuallyDrop` or `forget` to avoid running drop code"] + #[must_use = "use `forget` to avoid running Drop code"] #[inline(always)] pub const fn new(val: T) -> MaybeUninit<T> { MaybeUninit { value: ManuallyDrop::new(val) } |
