about summary refs log tree commit diff
path: root/src/libsyntax/codemap.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/libsyntax/codemap.rs
parent2dae768624de87bcec1160bd29c27af1affe7f5f (diff)
downloadrust-afd91f8a5698e7767ddfbf90c665c08dcd4f0de0.tar.gz
rust-afd91f8a5698e7767ddfbf90c665c08dcd4f0de0.zip
Register snapshots. Remove redundant Eq impls, Makefile hacks
Diffstat (limited to 'src/libsyntax/codemap.rs')
-rw-r--r--src/libsyntax/codemap.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs
index 6340e10429d..ae49e19c862 100644
--- a/src/libsyntax/codemap.rs
+++ b/src/libsyntax/codemap.rs
@@ -32,15 +32,6 @@ type filename = ~str;
 
 type file_pos = {ch: uint, byte: uint};
 
-#[cfg(stage0)]
-impl file_pos: cmp::Eq {
-    pure fn eq(&&other: file_pos) -> bool {
-        self.ch == other.ch && self.byte == other.byte
-    }
-    pure fn ne(&&other: file_pos) -> bool { !self.eq(other) }
-}
-#[cfg(stage1)]
-#[cfg(stage2)]
 impl file_pos : cmp::Eq {
     pure fn eq(other: &file_pos) -> bool {
         self.ch == (*other).ch && self.byte == (*other).byte
@@ -180,15 +171,6 @@ type expn_info = Option<@expn_info_>;
 
 type span = {lo: uint, hi: uint, expn_info: expn_info};
 
-#[cfg(stage0)]
-impl span : cmp::Eq {
-    pure fn eq(&&other: span) -> bool {
-        return self.lo == other.lo && self.hi == other.hi;
-    }
-    pure fn ne(&&other: span) -> bool { !self.eq(other) }
-}
-#[cfg(stage1)]
-#[cfg(stage2)]
 impl span : cmp::Eq {
     pure fn eq(other: &span) -> bool {
         return self.lo == (*other).lo && self.hi == (*other).hi;