diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 967a36f6f1c3..4b5056c5adff 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -1321,6 +1321,9 @@ impl MaybeUninit { /// Reads the value from the `MaybeUninit` container. The resulting `T` is subject /// to the usual drop handling. /// + /// Whenever possible, it is preferrable to use [`into_initialized`] instead, which + /// prevents duplicating the content of the `MaybeUninit`. + /// /// # Safety /// /// It is up to the caller to guarantee that the `MaybeUninit` really is in an initialized