about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/comments.rs11
-rw-r--r--src/libsyntax/parse/obsolete.rs11
-rw-r--r--src/libsyntax/parse/parser.rs9
-rw-r--r--src/libsyntax/parse/token.rs277
4 files changed, 0 insertions, 308 deletions
diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs
index 471a800b382..9c705cff7bb 100644
--- a/src/libsyntax/parse/comments.rs
+++ b/src/libsyntax/parse/comments.rs
@@ -17,17 +17,6 @@ enum cmnt_style {
     blank_line, // Just a manual blank line "\n\n", for layout
 }
 
-#[cfg(stage0)]
-impl cmnt_style : cmp::Eq {
-    pure fn eq(&&other: cmnt_style) -> bool {
-        (self as uint) == (other as uint)
-    }
-    pure fn ne(&&other: cmnt_style) -> bool {
-        (self as uint) != (other as uint)
-    }
-}
-#[cfg(stage1)]
-#[cfg(stage2)]
 impl cmnt_style : cmp::Eq {
     pure fn eq(other: &cmnt_style) -> bool {
         (self as uint) == ((*other) as uint)
diff --git a/src/libsyntax/parse/obsolete.rs b/src/libsyntax/parse/obsolete.rs
index d787123bf61..9cfa84ad9e0 100644
--- a/src/libsyntax/parse/obsolete.rs
+++ b/src/libsyntax/parse/obsolete.rs
@@ -25,17 +25,6 @@ pub enum ObsoleteSyntax {
     ObsoleteModeInFnType
 }
 
-#[cfg(stage0)]
-impl ObsoleteSyntax : cmp::Eq {
-    pure fn eq(&&other: ObsoleteSyntax) -> bool {
-        self as uint == other as uint
-    }
-    pure fn ne(&&other: ObsoleteSyntax) -> bool {
-        !self.eq(other)
-    }
-}
-#[cfg(stage1)]
-#[cfg(stage2)]
 impl ObsoleteSyntax : cmp::Eq {
     pure fn eq(other: &ObsoleteSyntax) -> bool {
         self as uint == (*other) as uint
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 490808edaad..2ffe69c8b10 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -3657,15 +3657,6 @@ impl parser {
     }
 }
 
-#[cfg(stage0)]
-impl restriction : cmp::Eq {
-    pure fn eq(&&other: restriction) -> bool {
-        (self as uint) == (other as uint)
-    }
-    pure fn ne(&&other: restriction) -> bool { !self.eq(other) }
-}
-#[cfg(stage1)]
-#[cfg(stage2)]
 impl restriction : cmp::Eq {
     pure fn eq(other: &restriction) -> bool {
         (self as uint) == ((*other) as uint)
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 37f2e6bd189..0f9041a2fcd 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -436,15 +436,6 @@ fn reserved_keyword_table() -> HashMap<~str, ()> {
     words
 }
 
-#[cfg(stage0)]
-impl binop : cmp::Eq {
-    pure fn eq(&&other: binop) -> bool {
-        (self as uint) == (other as uint)
-    }
-    pure fn ne(&&other: binop) -> bool { !self.eq(other) }
-}
-#[cfg(stage1)]
-#[cfg(stage2)]
 impl binop : cmp::Eq {
     pure fn eq(other: &binop) -> bool {
         (self as uint) == ((*other) as uint)
@@ -452,274 +443,6 @@ impl binop : cmp::Eq {
     pure fn ne(other: &binop) -> bool { !self.eq(other) }
 }
 
-#[cfg(stage0)]
-impl token : cmp::Eq {
-    pure fn eq(&&other: token) -> bool {
-        match self {
-            EQ => {
-                match other {
-                    EQ => true,
-                    _ => false
-                }
-            }
-            LT => {
-                match other {
-                    LT => true,
-                    _ => false
-                }
-            }
-            LE => {
-                match other {
-                    LE => true,
-                    _ => false
-                }
-            }
-            EQEQ => {
-                match other {
-                    EQEQ => true,
-                    _ => false
-                }
-            }
-            NE => {
-                match other {
-                    NE => true,
-                    _ => false
-                }
-            }
-            GE => {
-                match other {
-                    GE => true,
-                    _ => false
-                }
-            }
-            GT => {
-                match other {
-                    GT => true,
-                    _ => false
-                }
-            }
-            ANDAND => {
-                match other {
-                    ANDAND => true,
-                    _ => false
-                }
-            }
-            OROR => {
-                match other {
-                    OROR => true,
-                    _ => false
-                }
-            }
-            NOT => {
-                match other {
-                    NOT => true,
-                    _ => false
-                }
-            }
-            TILDE => {
-                match other {
-                    TILDE => true,
-                    _ => false
-                }
-            }
-            BINOP(e0a) => {
-                match other {
-                    BINOP(e0b) => e0a == e0b,
-                    _ => false
-                }
-            }
-            BINOPEQ(e0a) => {
-                match other {
-                    BINOPEQ(e0b) => e0a == e0b,
-                    _ => false
-                }
-            }
-            AT => {
-                match other {
-                    AT => true,
-                    _ => false
-                }
-            }
-            DOT => {
-                match other {
-                    DOT => true,
-                    _ => false
-                }
-            }
-            DOTDOT => {
-                match other {
-                    DOTDOT => true,
-                    _ => false
-                }
-            }
-            ELLIPSIS => {
-                match other {
-                    ELLIPSIS => true,
-                    _ => false
-                }
-            }
-            COMMA => {
-                match other {
-                    COMMA => true,
-                    _ => false
-                }
-            }
-            SEMI => {
-                match other {
-                    SEMI => true,
-                    _ => false
-                }
-            }
-            COLON => {
-                match other {
-                    COLON => true,
-                    _ => false
-                }
-            }
-            MOD_SEP => {
-                match other {
-                    MOD_SEP => true,
-                    _ => false
-                }
-            }
-            RARROW => {
-                match other {
-                    RARROW => true,
-                    _ => false
-                }
-            }
-            LARROW => {
-                match other {
-                    LARROW => true,
-                    _ => false
-                }
-            }
-            DARROW => {
-                match other {
-                    DARROW => true,
-                    _ => false
-                }
-            }
-            FAT_ARROW => {
-                match other {
-                    FAT_ARROW => true,
-                    _ => false
-                }
-            }
-            LPAREN => {
-                match other {
-                    LPAREN => true,
-                    _ => false
-                }
-            }
-            RPAREN => {
-                match other {
-                    RPAREN => true,
-                    _ => false
-                }
-            }
-            LBRACKET => {
-                match other {
-                    LBRACKET => true,
-                    _ => false
-                }
-            }
-            RBRACKET => {
-                match other {
-                    RBRACKET => true,
-                    _ => false
-                }
-            }
-            LBRACE => {
-                match other {
-                    LBRACE => true,
-                    _ => false
-                }
-            }
-            RBRACE => {
-                match other {
-                    RBRACE => true,
-                    _ => false
-                }
-            }
-            POUND => {
-                match other {
-                    POUND => true,
-                    _ => false
-                }
-            }
-            DOLLAR => {
-                match other {
-                    DOLLAR => true,
-                    _ => false
-                }
-            }
-            LIT_INT(e0a, e1a) => {
-                match other {
-                    LIT_INT(e0b, e1b) => e0a == e0b && e1a == e1b,
-                    _ => false
-                }
-            }
-            LIT_UINT(e0a, e1a) => {
-                match other {
-                    LIT_UINT(e0b, e1b) => e0a == e0b && e1a == e1b,
-                    _ => false
-                }
-            }
-            LIT_INT_UNSUFFIXED(e0a) => {
-                match other {
-                    LIT_INT_UNSUFFIXED(e0b) => e0a == e0b,
-                    _ => false
-                }
-            }
-            LIT_FLOAT(e0a, e1a) => {
-                match other {
-                    LIT_FLOAT(e0b, e1b) => e0a == e0b && e1a == e1b,
-                    _ => false
-                }
-            }
-            LIT_STR(e0a) => {
-                match other {
-                    LIT_STR(e0b) => e0a == e0b,
-                    _ => false
-                }
-            }
-            IDENT(e0a, e1a) => {
-                match other {
-                    IDENT(e0b, e1b) => e0a == e0b && e1a == e1b,
-                    _ => false
-                }
-            }
-            UNDERSCORE => {
-                match other {
-                    UNDERSCORE => true,
-                    _ => false
-                }
-            }
-            INTERPOLATED(_) => {
-                match other {
-                    INTERPOLATED(_) => true,
-                    _ => false
-                }
-            }
-            DOC_COMMENT(e0a) => {
-                match other {
-                    DOC_COMMENT(e0b) => e0a == e0b,
-                    _ => false
-                }
-            }
-            EOF => {
-                match other {
-                    EOF => true,
-                    _ => false
-                }
-            }
-        }
-    }
-    pure fn ne(&&other: token) -> bool { !self.eq(other) }
-}
-#[cfg(stage1)]
-#[cfg(stage2)]
 impl token : cmp::Eq {
     pure fn eq(other: &token) -> bool {
         match self {