From c21b3ff81847e9c9bcce83f961dffa385fa059ae Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 7 Sep 2012 12:44:53 -0700 Subject: rustc: Make "ne" use traits --- src/libsyntax/ast_util.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 6f594cd6d70..1ff4728f472 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -110,7 +110,8 @@ pure fn binop_to_method_name(op: binop) -> Option<~str> { ge => return Some(~"ge"), gt => return Some(~"gt"), eq => return Some(~"eq"), - and | or | ne => return None + ne => return Some(~"ne"), + and | or => return None } } -- cgit 1.4.1-3-g733a5