diff options
Diffstat (limited to 'src/libstd/list.rs')
| -rw-r--r-- | src/libstd/list.rs | 22 |
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 { |
