Skip to content

Commit 997117b

Browse files
committed
---
yaml --- r: 44430 b: refs/heads/master c: ded95d2 h: refs/heads/master v: v3
1 parent 7c1c2a7 commit 997117b

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 16da4e15af02f92d4c7e7cfe36344a276096585d
2+
refs/heads/master: ded95d2c2891d7ffec1277cb4969ed956ff0bd25
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
55
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3

trunk/src/libsyntax/parse/token.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ use std::oldmap::HashMap;
2525

2626
#[auto_encode]
2727
#[auto_decode]
28+
#[deriving_eq]
2829
pub enum binop {
2930
PLUS,
3031
MINUS,
@@ -518,12 +519,6 @@ pub fn reserved_keyword_table() -> HashMap<~str, ()> {
518519
words
519520
}
520521

521-
impl binop : cmp::Eq {
522-
pure fn eq(&self, other: &binop) -> bool {
523-
((*self) as uint) == ((*other) as uint)
524-
}
525-
pure fn ne(&self, other: &binop) -> bool { !(*self).eq(other) }
526-
}
527522

528523
impl Token : cmp::Eq {
529524
pure fn eq(&self, other: &Token) -> bool {

0 commit comments

Comments
 (0)