File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1240,8 +1240,8 @@ impl<Ptr: Deref> Pin<Ptr> {
1240
1240
/// points to is pinned, that is a violation of the API contract and may lead to undefined
1241
1241
/// behavior in later (even safe) operations.
1242
1242
///
1243
- /// By using this method, you are also making a promise about the [`Deref`] and
1244
- /// [`DerefMut`] implementations of `Ptr`, if they exist. Most importantly, they
1243
+ /// By using this method, you are also making a promise about the [`Deref`],
1244
+ /// [`DerefMut`], and [`Drop`] implementations of `Ptr`, if they exist. Most importantly, they
1245
1245
/// must not move out of their `self` arguments: `Pin::as_mut` and `Pin::as_ref`
1246
1246
/// will call `DerefMut::deref_mut` and `Deref::deref` *on the pointer type `Ptr`*
1247
1247
/// and expect these methods to uphold the pinning invariants.
You can’t perform that action at this time.
0 commit comments