about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-08-27 17:42:37 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-08-27 17:42:47 -0700
commit303e105677d2d9b5d362fd0749a97bd1b0cd2aed (patch)
treefa0a053c03ad47aa9ffd8dfe8002775f2bb31727 /src
parent32b13ce2ce7a187b4351d3d72844da7f2120300b (diff)
downloadrust-303e105677d2d9b5d362fd0749a97bd1b0cd2aed.tar.gz
rust-303e105677d2d9b5d362fd0749a97bd1b0cd2aed.zip
libcore: Fix equality for pointers... again
Diffstat (limited to 'src')
-rw-r--r--src/libcore/ptr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs
index 32a1e5fae4a..5e3b49da483 100644
--- a/src/libcore/ptr.rs
+++ b/src/libcore/ptr.rs
@@ -172,8 +172,8 @@ impl<T> *T: Ptr {
 }
 
 // Equality for pointers
-impl<T> *T : Eq {
-    pure fn eq(&&other: *T) -> bool { self == other }
+impl<T> *const T : Eq {
+    pure fn eq(&&other: *const T) -> bool { self == other }
 }
 
 #[test]