We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
core::ptr::eq<T>()
1 parent f280acf commit 0ba8c14Copy full SHA for 0ba8c14
library/core/src/ptr/mod.rs
@@ -2031,8 +2031,7 @@ pub(crate) unsafe fn align_offset<T: Sized>(p: *const T, a: usize) -> usize {
2031
/// not anything that implements `PartialEq`.
2032
///
2033
/// This can be used to compare `&T` references (which coerce to `*const T` implicitly)
2034
-/// by their address rather than comparing the values they point to
2035
-/// (which is what the `PartialEq for &T` implementation does).
+/// by their address rather than comparing the values they point to.
2036
2037
/// When comparing wide pointers, both the address and the metadata are tested for equality.
2038
/// However, note that comparing trait object pointers (`*const dyn Trait`) is unreliable: pointers
0 commit comments