Skip to content

Commit 303e105

Browse files
committed
libcore: Fix equality for pointers... again
1 parent 32b13ce commit 303e105

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ impl<T> *T: Ptr {
172172
}
173173

174174
// Equality for pointers
175-
impl<T> *T : Eq {
176-
pure fn eq(&&other: *T) -> bool { self == other }
175+
impl<T> *const T : Eq {
176+
pure fn eq(&&other: *const T) -> bool { self == other }
177177
}
178178

179179
#[test]

0 commit comments

Comments
 (0)