Commit 9ba6153 1 parent 60d6184 commit 9ba6153 Copy full SHA for 9ba6153
File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1681,7 +1681,7 @@ impl<T, const N: usize> *const [T; N] {
1681
1681
}
1682
1682
}
1683
1683
1684
- // Equality for pointers
1684
+ /// Pointer equality is by address, as produced by the [`<*const T>::addr`](pointer::addr) method.
1685
1685
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1686
1686
impl < T : ?Sized > PartialEq for * const T {
1687
1687
#[ inline]
@@ -1691,10 +1691,11 @@ impl<T: ?Sized> PartialEq for *const T {
1691
1691
}
1692
1692
}
1693
1693
1694
+ /// Pointer equality is an equivalence relation.
1694
1695
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1695
1696
impl < T : ?Sized > Eq for * const T { }
1696
1697
1697
- // Comparison for pointers
1698
+ /// Pointer comparison is by address, as produced by the `[`<*const T>::addr`](pointer::addr)` method.
1698
1699
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1699
1700
impl < T : ?Sized > Ord for * const T {
1700
1701
#[ inline]
@@ -1710,6 +1711,7 @@ impl<T: ?Sized> Ord for *const T {
1710
1711
}
1711
1712
}
1712
1713
1714
+ /// Pointer comparison is by address, as produced by the `[`<*const T>::addr`](pointer::addr)` method.
1713
1715
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1714
1716
impl < T : ?Sized > PartialOrd for * const T {
1715
1717
#[ inline]
Original file line number Diff line number Diff line change @@ -2097,7 +2097,7 @@ impl<T, const N: usize> *mut [T; N] {
2097
2097
}
2098
2098
}
2099
2099
2100
- // Equality for pointers
2100
+ /// Pointer equality is by address, as produced by the [`<*mut T>::addr`](pointer::addr) method.
2101
2101
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2102
2102
impl < T : ?Sized > PartialEq for * mut T {
2103
2103
#[ inline( always) ]
@@ -2107,9 +2107,11 @@ impl<T: ?Sized> PartialEq for *mut T {
2107
2107
}
2108
2108
}
2109
2109
2110
+ /// Pointer equality is an equivalence relation.
2110
2111
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2111
2112
impl < T : ?Sized > Eq for * mut T { }
2112
2113
2114
+ /// Pointer comparison is by address, as produced by the [`<*mut T>::addr`](pointer::addr) method.
2113
2115
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2114
2116
impl < T : ?Sized > Ord for * mut T {
2115
2117
#[ inline]
@@ -2125,6 +2127,7 @@ impl<T: ?Sized> Ord for *mut T {
2125
2127
}
2126
2128
}
2127
2129
2130
+ /// Pointer comparison is by address, as produced by the [`<*mut T>::addr`](pointer::addr) method.
2128
2131
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2129
2132
impl < T : ?Sized > PartialOrd for * mut T {
2130
2133
#[ inline( always) ]
You can’t perform that action at this time.
0 commit comments