diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index a3cf8b63483..19648fe76cf 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -2878,7 +2878,8 @@ impl<'a, T: ?Sized> From> for Unique { /// Notice that `NonNull` has a `From` instance for `&T`. However, this does /// not change the fact that mutating through a (pointer derived from a) shared /// reference is undefined behavior unless the mutation happens inside an -/// [`UnsafeCell`]. When using this `From` instance without an `UnsafeCell`, +/// [`UnsafeCell`]. The same goes for creating a mutable reference from a shared +/// reference. When using this `From` instance without an `UnsafeCell`, /// it is your responsibility to ensure that `as_mut` is never called, and `as_ptr` /// is never used for mutation. ///