Skip to content

Commit 0d4af08

Browse files
authored
Rollup merge of #137614 - xizheyin:issue-134874, r=cuviper
fix doc in library/core/src/pin.rs Fixes #134874
2 parents cf8498d + 48483ad commit 0d4af08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/pin.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1240,8 +1240,8 @@ impl<Ptr: Deref> Pin<Ptr> {
12401240
/// points to is pinned, that is a violation of the API contract and may lead to undefined
12411241
/// behavior in later (even safe) operations.
12421242
///
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
12451245
/// must not move out of their `self` arguments: `Pin::as_mut` and `Pin::as_ref`
12461246
/// will call `DerefMut::deref_mut` and `Deref::deref` *on the pointer type `Ptr`*
12471247
/// and expect these methods to uphold the pinning invariants.

0 commit comments

Comments
 (0)