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/ext/pipes/proto.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/pipes/proto.rs b/src/libsyntax/ext/pipes/proto.rs index 789ee70249f..d207a65a169 100644 --- a/src/libsyntax/ext/pipes/proto.rs +++ b/src/libsyntax/ext/pipes/proto.rs @@ -14,6 +14,7 @@ impl direction : cmp::Eq { (recv, _) => false, } } + pure fn ne(&&other: direction) -> bool { !self.eq(other) } } impl direction: ToStr { -- cgit 1.4.1-3-g733a5