From feb014eb3c3aa1ccaae1df407801dffa090499fd Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 7 Sep 2012 12:06:02 -0700 Subject: rustc: Add an "ne" method to the Eq trait, and implement it everywhere --- src/libsyntax/ast_map.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsyntax/ast_map.rs') diff --git a/src/libsyntax/ast_map.rs b/src/libsyntax/ast_map.rs index c131c7d57ad..e0285694460 100644 --- a/src/libsyntax/ast_map.rs +++ b/src/libsyntax/ast_map.rs @@ -28,6 +28,7 @@ impl path_elt : cmp::Eq { } } } + pure fn ne(&&other: path_elt) -> bool { !self.eq(other) } } type path = ~[path_elt]; -- cgit 1.4.1-3-g733a5