Skip to content

Commit

Permalink
Unrolled build for rust-lang#137614
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#137614 - xizheyin:issue-134874, r=cuviper

fix doc in library/core/src/pin.rs

Fixes rust-lang#134874
  • Loading branch information
rust-timer authored Feb 26, 2025
2 parents a46c755 + 48483ad commit 96bedfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1240,8 +1240,8 @@ impl<Ptr: Deref> Pin<Ptr> {
/// points to is pinned, that is a violation of the API contract and may lead to undefined
/// behavior in later (even safe) operations.
///
/// By using this method, you are also making a promise about the [`Deref`] and
/// [`DerefMut`] implementations of `Ptr`, if they exist. Most importantly, they
/// By using this method, you are also making a promise about the [`Deref`],
/// [`DerefMut`], and [`Drop`] implementations of `Ptr`, if they exist. Most importantly, they
/// must not move out of their `self` arguments: `Pin::as_mut` and `Pin::as_ref`
/// will call `DerefMut::deref_mut` and `Deref::deref` *on the pointer type `Ptr`*
/// and expect these methods to uphold the pinning invariants.
Expand Down

0 comments on commit 96bedfa

Please sign in to comment.