about summary refs log tree commit diff
path: root/src/libstd/deque.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/deque.rs
parent2dae768624de87bcec1160bd29c27af1affe7f5f (diff)
downloadrust-afd91f8a5698e7767ddfbf90c665c08dcd4f0de0.tar.gz
rust-afd91f8a5698e7767ddfbf90c665c08dcd4f0de0.zip
Register snapshots. Remove redundant Eq impls, Makefile hacks
Diffstat (limited to 'src/libstd/deque.rs')
-rw-r--r--src/libstd/deque.rs56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/libstd/deque.rs b/src/libstd/deque.rs
index 05875636415..17d4b39b01e 100644
--- a/src/libstd/deque.rs
+++ b/src/libstd/deque.rs
@@ -240,28 +240,6 @@ mod tests {
 
     type RecCy = {x: int, y: int, t: Taggy};
 
-#[cfg(stage0)]
-    impl Taggy : Eq {
-        pure fn eq(other: Taggy) -> bool {
-            match self {
-              One(a1) => match other {
-                One(b1) => return a1 == b1,
-                _ => return false
-              },
-              Two(a1, a2) => match other {
-                Two(b1, b2) => return a1 == b1 && a2 == b2,
-                _ => return false
-              },
-              Three(a1, a2, a3) => match other {
-                Three(b1, b2, b3) => return a1 == b1 && a2 == b2 && a3 == b3,
-                _ => return false
-              }
-            }
-        }
-        pure fn ne(other: Taggy) -> bool { !self.eq(other) }
-    }
-    #[cfg(stage1)]
-    #[cfg(stage2)]
     impl Taggy : Eq {
         pure fn eq(other: &Taggy) -> bool {
             match self {
@@ -282,31 +260,6 @@ mod tests {
         pure fn ne(other: &Taggy) -> bool { !self.eq(other) }
     }
 
-#[cfg(stage0)]
-    impl Taggypar<int> : Eq {
-        //let eq4: EqFn<Taggypar<int>> = |x,y| taggypareq::<int>(x, y);
-        pure fn eq(other: Taggypar<int>) -> bool {
-                  match self {
-                    Onepar::<int>(a1) => match other {
-                      Onepar::<int>(b1) => return a1 == b1,
-                      _ => return false
-                    },
-                    Twopar::<int>(a1, a2) => match other {
-                      Twopar::<int>(b1, b2) => return a1 == b1 && a2 == b2,
-                      _ => return false
-                    },
-                    Threepar::<int>(a1, a2, a3) => match other {
-                      Threepar::<int>(b1, b2, b3) => {
-                          return a1 == b1 && a2 == b2 && a3 == b3
-                      }
-                      _ => return false
-                    }
-                  }
-        }
-        pure fn ne(other: Taggypar<int>) -> bool { !self.eq(other) }
-    }
-    #[cfg(stage1)]
-    #[cfg(stage2)]
     impl Taggypar<int> : Eq {
         //let eq4: EqFn<Taggypar<int>> = |x,y| taggypareq::<int>(x, y);
         pure fn eq(other: &Taggypar<int>) -> bool {
@@ -330,15 +283,6 @@ mod tests {
         pure fn ne(other: &Taggypar<int>) -> bool { !self.eq(other) }
     }
 
-#[cfg(stage0)]
-    impl RecCy : Eq {
-        pure fn eq(other: RecCy) -> bool {
-          return self.x == other.x && self.y == other.y && self.t == other.t;
-        }
-        pure fn ne(other: RecCy) -> bool { !self.eq(other) }
-    }
-    #[cfg(stage1)]
-    #[cfg(stage2)]
     impl RecCy : Eq {
         pure fn eq(other: &RecCy) -> bool {
           return self.x == (*other).x && self.y == (*other).y &&