about summary refs log tree commit diff
path: root/src/libstd/list.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-23 22:25:43 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-23 23:01:49 -0700
commitafd91f8a5698e7767ddfbf90c665c08dcd4f0de0 (patch)
tree3bc5d52fd888c010ea797f6570c92abe861c183a /src/libstd/list.rs
parent2dae768624de87bcec1160bd29c27af1affe7f5f (diff)
downloadrust-afd91f8a5698e7767ddfbf90c665c08dcd4f0de0.tar.gz
rust-afd91f8a5698e7767ddfbf90c665c08dcd4f0de0.zip
Register snapshots. Remove redundant Eq impls, Makefile hacks
Diffstat (limited to 'src/libstd/list.rs')
-rw-r--r--src/libstd/list.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/libstd/list.rs b/src/libstd/list.rs
index 26cc7764e7a..45eafb3d018 100644
--- a/src/libstd/list.rs
+++ b/src/libstd/list.rs
@@ -148,28 +148,6 @@ fn each<T>(l: @List<T>, f: fn(T) -> bool) {
     }
 }
 
-#[cfg(stage0)]
-impl<T:Eq> List<T> : Eq {
-    pure fn eq(&&other: List<T>) -> bool {
-        match self {
-            Cons(e0a, e1a) => {
-                match other {
-                    Cons(e0b, e1b) => e0a == e0b && e1a == e1b,
-                    _ => false
-                }
-            }
-            Nil => {
-                match other {
-                    Nil => true,
-                    _ => false
-                }
-            }
-        }
-    }
-    pure fn ne(&&other: List<T>) -> bool { !self.eq(other) }
-}
-#[cfg(stage1)]
-#[cfg(stage2)]
 impl<T:Eq> List<T> : Eq {
     pure fn eq(other: &List<T>) -> bool {
         match self {