File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -359,8 +359,8 @@ impl<P: Deref> Pin<P> {
359359 /// This constructor is unsafe because we cannot guarantee that the data
360360 /// pointed to by `pointer` is pinned, meaning that the data will not be moved or
361361 /// 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 .
362+ /// not guarantee that the data `P` points to is pinned, that is a violation of
363+ /// the API contract and may lead to undefined behavior in later (safe) operations .
364364 ///
365365 /// By using this method, you are making a promise about the `P::Deref` and
366366 /// `P::DerefMut` implementations, if they exist. Most importantly, they
You can’t perform that action at this time.
0 commit comments