mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Rewrite safety comment for PinCoerceUnsized
This commit is contained in:
committed by
Tim (Theemathas) Chirananthavat
parent
1e4c1d6f75
commit
f55c8cca4c
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user