File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2878,7 +2878,8 @@ impl<'a, T: ?Sized> From<NonNull<T>> for Unique<T> {
28782878/// Notice that `NonNull<T>` has a `From` instance for `&T`. However, this does
28792879/// not change the fact that mutating through a (pointer derived from a) shared
28802880/// reference is undefined behavior unless the mutation happens inside an
2881- /// [`UnsafeCell<T>`]. When using this `From` instance without an `UnsafeCell<T>`,
2881+ /// [`UnsafeCell<T>`]. The same goes for creating a mutable reference from a shared
2882+ /// reference. When using this `From` instance without an `UnsafeCell<T>`,
28822883/// it is your responsibility to ensure that `as_mut` is never called, and `as_ptr`
28832884/// is never used for mutation.
28842885///
You can’t perform that action at this time.
0 commit comments