about summary refs log tree commit diff
path: root/src/libcore/uint-template.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-08-27 15:04:18 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-08-27 15:04:47 -0700
commit180202fa4d5db2b32216f35ec9a8b3c05252efc1 (patch)
tree89bd1cf6f2b814dff722b1d191d95725c4ac2aa7 /src/libcore/uint-template.rs
parent0c6e470a257fc546555aa10ededded4a77460a71 (diff)
libcore: Fix core test
Diffstat (limited to 'src/libcore/uint-template.rs')
-rw-r--r--src/libcore/uint-template.rs20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/libcore/uint-template.rs b/src/libcore/uint-template.rs
index 1aa46e62825..48681661ee7 100644
--- a/src/libcore/uint-template.rs
+++ b/src/libcore/uint-template.rs
@@ -1,5 +1,4 @@
 import T = inst::T;
-import cmp::{Eq, Ord};
 
 export min_value, max_value;
 export min, max;
@@ -56,15 +55,20 @@ pure fn compl(i: T) -> T {
     max_value ^ i
 }
 
-impl T: Ord {
-    pure fn lt(&&other: T) -> bool {
-        return self < other;
+#[cfg(notest)]
+mod impls {
+    import cmp::{Eq, Ord};
+
+    impl T: Ord {
+        pure fn lt(&&other: T) -> bool {
+            return self < other;
+        }
     }
-}
 
-impl T: Eq {
-    pure fn eq(&&other: T) -> bool {
-        return self == other;
+    impl T: Eq {
+        pure fn eq(&&other: T) -> bool {
+            return self == other;
+        }
     }
 }