Skip to content

Commit f55c8cc

Browse files
committed
Rewrite safety comment for PinCoerceUnsized
1 parent 1e4c1d6 commit f55c8cc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

library/core/src/pin.rs

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

0 commit comments

Comments
 (0)