about summary refs log tree commit diff
path: root/src/libcore/owned.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/owned.rs')
-rw-r--r--src/libcore/owned.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/owned.rs b/src/libcore/owned.rs
index 599591e2f6d..3262fb4afdc 100644
--- a/src/libcore/owned.rs
+++ b/src/libcore/owned.rs
@@ -10,9 +10,9 @@
 
 //! Operations on unique pointer types
 
-#[cfg(notest)] use cmp::{Eq, Ord};
+#[cfg(not(test))] use cmp::{Eq, Ord};
 
-#[cfg(notest)]
+#[cfg(not(test))]
 impl<T:Eq> Eq for ~T {
     #[inline(always)]
     fn eq(&self, other: &~T) -> bool { *(*self) == *(*other) }
@@ -20,7 +20,7 @@ impl<T:Eq> Eq for ~T {
     fn ne(&self, other: &~T) -> bool { *(*self) != *(*other) }
 }
 
-#[cfg(notest)]
+#[cfg(not(test))]
 impl<T:Ord> Ord for ~T {
     #[inline(always)]
     fn lt(&self, other: &~T) -> bool { *(*self) < *(*other) }