diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index a9a029d606d..c9f1a87ba9f 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -2483,6 +2483,10 @@ impl Eq for *mut T {} /// by their address rather than comparing the values they point to /// (which is what the `PartialEq for &T` implementation does). /// +/// Smart pointer types, such as `Box`, `Rc`, and `Arc` do not compare +/// using this function, instead they compare the values rather than +/// their addresses. +/// /// # Examples /// /// ```