about summary refs log tree commit diff
path: root/src/libstd/test.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-12-11 15:16:36 -0800
committerBrian Anderson <banderson@mozilla.com>2012-12-13 16:14:28 -0800
commitd809e89c2682c3bb0ec0b58d7a8beb71060ae619 (patch)
tree3e31eb1e518adf5f6c27dab2390b2973e95c7b6e /src/libstd/test.rs
parent742f354ffb08d81f6977aabc78a854cced22b9d3 (diff)
downloadrust-d809e89c2682c3bb0ec0b58d7a8beb71060ae619.tar.gz
rust-d809e89c2682c3bb0ec0b58d7a8beb71060ae619.zip
Replace some Eq impls with deriving_eq
Diffstat (limited to 'src/libstd/test.rs')
-rw-r--r--src/libstd/test.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libstd/test.rs b/src/libstd/test.rs
index b2dcf02a569..2bf735dd584 100644
--- a/src/libstd/test.rs
+++ b/src/libstd/test.rs
@@ -92,15 +92,9 @@ fn parse_opts(args: &[~str]) -> OptRes {
     return either::Left(test_opts);
 }
 
+#[deriving_eq]
 pub enum TestResult { TrOk, TrFailed, TrIgnored, }
 
-impl TestResult : Eq {
-    pure fn eq(&self, other: &TestResult) -> bool {
-        ((*self) as uint) == ((*other) as uint)
-    }
-    pure fn ne(&self, other: &TestResult) -> bool { !(*self).eq(other) }
-}
-
 type ConsoleTestState =
     @{out: io::Writer,
       log_out: Option<io::Writer>,