diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-23 22:25:43 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-23 23:01:49 -0700 |
| commit | afd91f8a5698e7767ddfbf90c665c08dcd4f0de0 (patch) | |
| tree | 3bc5d52fd888c010ea797f6570c92abe861c183a /src/libcore/either.rs | |
| parent | 2dae768624de87bcec1160bd29c27af1affe7f5f (diff) | |
| download | rust-afd91f8a5698e7767ddfbf90c665c08dcd4f0de0.tar.gz rust-afd91f8a5698e7767ddfbf90c665c08dcd4f0de0.zip | |
Register snapshots. Remove redundant Eq impls, Makefile hacks
Diffstat (limited to 'src/libcore/either.rs')
| -rw-r--r-- | src/libcore/either.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/libcore/either.rs b/src/libcore/either.rs index d566cd7e6dc..55e22f7cfe9 100644 --- a/src/libcore/either.rs +++ b/src/libcore/either.rs @@ -126,28 +126,6 @@ pure fn unwrap_right<T,U>(+eith: Either<T,U>) -> U { } } -#[cfg(stage0)] -impl<T:Eq,U:Eq> Either<T,U> : Eq { - pure fn eq(&&other: Either<T,U>) -> bool { - match self { - Left(a) => { - match other { - Left(b) => a.eq(b), - Right(_) => false - } - } - Right(a) => { - match other { - Left(_) => false, - Right(b) => a.eq(b) - } - } - } - } - pure fn ne(&&other: Either<T,U>) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl<T:Eq,U:Eq> Either<T,U> : Eq { pure fn eq(other: &Either<T,U>) -> bool { match self { |
