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
|
@ -609,12 +609,12 @@ impl Error : Eq {
|
|||
self.col == other.col &&
|
||||
self.msg == other.msg
|
||||
}
|
||||
pure fn ne(&&other: Error) -> bool { !self.eq(other) }
|
||||
}
|
||||
|
||||
impl Json : Eq {
|
||||
pure fn eq(&&other: Json) -> bool {
|
||||
eq(self, other)
|
||||
}
|
||||
pure fn eq(&&other: Json) -> bool { eq(self, other) }
|
||||
pure fn ne(&&other: Json) -> bool { !self.eq(other) }
|
||||
}
|
||||
|
||||
trait ToJson { fn to_json() -> Json; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue