Skip to content

Commit 721c056

Browse files
committed
Auto merge of rust-lang#123814 - matthiaskrgr:rollup-lxn0t4t, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - rust-lang#123459 (Correctly handle inlining of doc hidden foreign items) - rust-lang#123740 (Reduce Size of `ModifierInfo`) - rust-lang#123770 (Correct broken link in core::pin doc) - rust-lang#123777 (Deduplicate some function implementations between the parser and AST/HIR) - rust-lang#123808 (codegen tests: Tolerate `nuw` `nsw` on `trunc`) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 4486f02 + b7da755 commit 721c056

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/src/pin.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,11 @@
379379
//!
380380
//! Exposing access to the inner field which you want to remain pinned must then be carefully
381381
//! considered as well! Remember, exposing a method that gives access to a
382-
//! <code>[Pin]<[&mut] InnerT>></code> where `InnerT: [Unpin]` would allow safe code to trivially
383-
//! move the inner value out of that pinning pointer, which is precisely what you're seeking to
384-
//! prevent! Exposing a field of a pinned value through a pinning pointer is called "projecting"
385-
//! a pin, and the more general case of deciding in which cases a pin should be able to be
386-
//! projected or not is called "structural pinning." We will go into more detail about this
382+
//! <code>[Pin]<[&mut] InnerT>></code> where <code>InnerT: [Unpin]</code> would allow safe code to
383+
//! trivially move the inner value out of that pinning pointer, which is precisely what you're
384+
//! seeking to prevent! Exposing a field of a pinned value through a pinning pointer is called
385+
//! "projecting" a pin, and the more general case of deciding in which cases a pin should be able
386+
//! to be projected or not is called "structural pinning." We will go into more detail about this
387387
//! [below][structural-pinning].
388388
//!
389389
//! # Examples of address-sensitive types

0 commit comments

Comments
 (0)