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> {
2878
2878
/// Notice that `NonNull<T>` has a `From` instance for `&T`. However, this does
2879
2879
/// not change the fact that mutating through a (pointer derived from a) shared
2880
2880
/// 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>`,
2882
2883
/// it is your responsibility to ensure that `as_mut` is never called, and `as_ptr`
2883
2884
/// is never used for mutation.
2884
2885
///
You can’t perform that action at this time.
0 commit comments