Skip to content

Commit 2d1fe43

Browse files
committed
Rewrite safety comment for PinCoerceUnsized
1 parent f4fa919 commit 2d1fe43

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

library/core/src/pin.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,9 +1831,10 @@ where
18311831
///
18321832
/// # Safety
18331833
///
1834-
/// If this type implements `Deref`, then the concrete type returned by `deref`
1835-
/// and `deref_mut` must not change without a modification. The following
1836-
/// operations are not considered modifications:
1834+
/// Given a pointer of this type, the concrete type returned by its
1835+
/// `deref` method and (if it implements `DerefMut`) its `deref_mut` method
1836+
/// must be the same type and must not change without a modification.
1837+
/// The following operations are not considered modifications:
18371838
///
18381839
/// * Moving the pointer.
18391840
/// * Performing unsizing coercions on the pointer.

0 commit comments

Comments
 (0)