about summary refs log tree commit diff
path: root/src/libcore/managed.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/managed.rs')
-rw-r--r--src/libcore/managed.rs28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/libcore/managed.rs b/src/libcore/managed.rs
index b177dced888..30ebeda3f5c 100644
--- a/src/libcore/managed.rs
+++ b/src/libcore/managed.rs
@@ -37,13 +37,13 @@ pub mod raw {
 }
 
 #[inline(always)]
-pub pure fn ptr_eq<T>(a: @T, b: @T) -> bool {
+pub fn ptr_eq<T>(a: @T, b: @T) -> bool {
     //! Determine if two shared boxes point to the same object
     unsafe { ptr::addr_of(&(*a)) == ptr::addr_of(&(*b)) }
 }
 
 #[inline(always)]
-pub pure fn mut_ptr_eq<T>(a: @mut T, b: @mut T) -> bool {
+pub fn mut_ptr_eq<T>(a: @mut T, b: @mut T) -> bool {
     //! Determine if two mutable shared boxes point to the same object
     unsafe { ptr::addr_of(&(*a)) == ptr::addr_of(&(*b)) }
 }
@@ -51,41 +51,41 @@ pub pure fn mut_ptr_eq<T>(a: @mut T, b: @mut T) -> bool {
 #[cfg(notest)]
 impl<T:Eq> Eq for @T {
     #[inline(always)]
-    pure fn eq(&self, other: &@T) -> bool { *(*self) == *(*other) }
+    fn eq(&self, other: &@T) -> bool { *(*self) == *(*other) }
     #[inline(always)]
-    pure fn ne(&self, other: &@T) -> bool { *(*self) != *(*other) }
+    fn ne(&self, other: &@T) -> bool { *(*self) != *(*other) }
 }
 
 #[cfg(notest)]
 impl<T:Eq> Eq for @mut T {
     #[inline(always)]
-    pure fn eq(&self, other: &@mut T) -> bool { *(*self) == *(*other) }
+    fn eq(&self, other: &@mut T) -> bool { *(*self) == *(*other) }
     #[inline(always)]
-    pure fn ne(&self, other: &@mut T) -> bool { *(*self) != *(*other) }
+    fn ne(&self, other: &@mut T) -> bool { *(*self) != *(*other) }
 }
 
 #[cfg(notest)]
 impl<T:Ord> Ord for @T {
     #[inline(always)]
-    pure fn lt(&self, other: &@T) -> bool { *(*self) < *(*other) }
+    fn lt(&self, other: &@T) -> bool { *(*self) < *(*other) }
     #[inline(always)]
-    pure fn le(&self, other: &@T) -> bool { *(*self) <= *(*other) }
+    fn le(&self, other: &@T) -> bool { *(*self) <= *(*other) }
     #[inline(always)]
-    pure fn ge(&self, other: &@T) -> bool { *(*self) >= *(*other) }
+    fn ge(&self, other: &@T) -> bool { *(*self) >= *(*other) }
     #[inline(always)]
-    pure fn gt(&self, other: &@T) -> bool { *(*self) > *(*other) }
+    fn gt(&self, other: &@T) -> bool { *(*self) > *(*other) }
 }
 
 #[cfg(notest)]
 impl<T:Ord> Ord for @mut T {
     #[inline(always)]
-    pure fn lt(&self, other: &@mut T) -> bool { *(*self) < *(*other) }
+    fn lt(&self, other: &@mut T) -> bool { *(*self) < *(*other) }
     #[inline(always)]
-    pure fn le(&self, other: &@mut T) -> bool { *(*self) <= *(*other) }
+    fn le(&self, other: &@mut T) -> bool { *(*self) <= *(*other) }
     #[inline(always)]
-    pure fn ge(&self, other: &@mut T) -> bool { *(*self) >= *(*other) }
+    fn ge(&self, other: &@mut T) -> bool { *(*self) >= *(*other) }
     #[inline(always)]
-    pure fn gt(&self, other: &@mut T) -> bool { *(*self) > *(*other) }
+    fn gt(&self, other: &@mut T) -> bool { *(*self) > *(*other) }
 }
 
 #[test]