rustc: Add an "ne" method to the Eq trait, and implement it everywhere

This commit is contained in:
Patrick Walton
2012-09-07 12:06:02 -07:00
parent ac1f84c153
commit feb014eb3c
76 changed files with 218 additions and 60 deletions

View File

@@ -28,6 +28,7 @@ impl path_elt : cmp::Eq {
}
}
}
pure fn ne(&&other: path_elt) -> bool { !self.eq(other) }
}
type path = ~[path_elt];