We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcc55e5 commit 6b88007Copy full SHA for 6b88007
src/libcore/pin.rs
@@ -359,8 +359,8 @@ impl<P: Deref> Pin<P> {
359
/// This constructor is unsafe because we cannot guarantee that the data
360
/// pointed to by `pointer` is pinned, meaning that the data will not be moved or
361
/// its storage invalidated until it gets dropped. If the constructed `Pin<P>` does
362
- /// not guarantee that the data `P` points to is pinned, constructing a
363
- /// `Pin<P>` is unsafe.
+ /// not guarantee that the data `P` points to is pinned, that is a violation of
+ /// the API contract and may lead to undefined behavior in later (safe) operations.
364
///
365
/// By using this method, you are making a promise about the `P::Deref` and
366
/// `P::DerefMut` implementations, if they exist. Most importantly, they
0 commit comments