Rewrite safety comment for PinCoerceUnsized

This commit is contained in:
Theemathas Chirananthavat
2025-12-03 21:40:43 +07:00
committed by Tim (Theemathas) Chirananthavat
parent 1e4c1d6f75
commit f55c8cca4c
+4 -3
View File
@@ -1829,9 +1829,10 @@ impl<Ptr, U> DispatchFromDyn<Pin<U>> for Pin<Ptr>
///
/// # Safety
///
/// If this type implements `Deref`, then the concrete type returned by `deref`
/// and `deref_mut` must not change without a modification. The following
/// operations are not considered modifications:
/// Given a pointer of this type, the concrete type returned by its
/// `deref` method and (if it implements `DerefMut`) its `deref_mut` method
/// must be the same type and must not change without a modification.
/// The following operations are not considered modifications:
///
/// * Moving the pointer.
/// * Performing unsizing coercions on the pointer.