diff options
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/parse/token.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index e900b7dd7b3..633ace5e253 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3626,6 +3626,7 @@ 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) } } // diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 945f4c6b279..73e4039513e 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -440,6 +440,7 @@ 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) } } impl token : cmp::Eq { @@ -705,6 +706,7 @@ impl token : cmp::Eq { } } } + pure fn ne(&&other: token) -> bool { !self.eq(other) } } // Local Variables: |
