From 303e105677d2d9b5d362fd0749a97bd1b0cd2aed Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 27 Aug 2012 17:42:37 -0700 Subject: [PATCH] libcore: Fix equality for pointers... again --- src/libcore/ptr.rs | 4 ++-- 1 file 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: Ptr { } // Equality for pointers -impl *T : Eq { - pure fn eq(&&other: *T) -> bool { self == other } +impl *const T : Eq { + pure fn eq(&&other: *const T) -> bool { self == other } } #[test]