Implemented in https://github.com/rust-lang/rust/pull/35992 as `#[unstable(feature = "ptr_eq")]`. `std::ptr::eq` is https://github.com/rust-lang/rfcs/issues/1155.