We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cf0db1 commit dfcf764Copy full SHA for dfcf764
src/libcore/pin.rs
@@ -403,6 +403,12 @@ pub struct Pin<P> {
403
pointer: P,
404
}
405
406
+// The following implementations aren't derived in order to avoid soundness
407
+// issues. `&self.pointer` should not be accessible to untrusted trait
408
+// implementations.
409
+//
410
+// See <https://internals.rust-lang.org/t/unsoundness-in-pin/11311/73> for more details.
411
+
412
#[stable(feature = "pin_trait_impls", since = "1.41.0")]
413
impl<P: Deref, Q: Deref> PartialEq<Pin<Q>> for Pin<P>
414
where
0 commit comments