about summary refs log tree commit diff
path: root/src/libcore/num/u16.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-01 18:06:59 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-07 08:16:42 -0700
commit104e285eb8f848867c2666765e2aa8221e8a97d1 (patch)
treed261196dbf9c8006ce647799fcc743a3a350910c /src/libcore/num/u16.rs
parentf62c121eb0de35ac03a7860e6039202f2522e527 (diff)
downloadrust-104e285eb8f848867c2666765e2aa8221e8a97d1.tar.gz
rust-104e285eb8f848867c2666765e2aa8221e8a97d1.zip
core: Get coretest working
This mostly involved frobbing imports between realstd, realcore, and the core
being test. Some of the imports are a little counterintuitive, but it mainly
focuses around libcore's types not implementing Show while libstd's types
implement Show.
Diffstat (limited to 'src/libcore/num/u16.rs')
-rw-r--r--src/libcore/num/u16.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libcore/num/u16.rs b/src/libcore/num/u16.rs
index 92afe4955a8..96db898e3b0 100644
--- a/src/libcore/num/u16.rs
+++ b/src/libcore/num/u16.rs
@@ -10,14 +10,18 @@
 
 //! Operations and constants for unsigned 16-bits integers (`u16` type)
 
-use cmp::{Eq, Ord, TotalEq, TotalOrd, Less, Greater, Equal, Ordering};
 use default::Default;
 use intrinsics;
 use num::{Bitwise, Bounded, Zero, One, Unsigned, Num, Int, Primitive};
 use num::{CheckedAdd, CheckedSub, CheckedMul, CheckedDiv};
+use option::{Some, None, Option};
+
+#[cfg(not(test))]
+use cmp::{Eq, Ord, TotalEq, TotalOrd, Less, Greater, Equal, Ordering};
+#[cfg(not(test))]
 use ops::{Add, Sub, Mul, Div, Rem, Neg, BitAnd, BitOr, BitXor};
+#[cfg(not(test))]
 use ops::{Shl, Shr, Not};
-use option::{Some, None, Option};
 
 uint_module!(u16, i16, 16)