rustc: Add an "ne" method to the Eq trait, and implement it everywhere
This commit is contained in:
parent
ac1f84c153
commit
feb014eb3c
76 changed files with 218 additions and 60 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue