Skip to content

Commit a03e777

Browse files
committed
---
yaml --- r: 30391 b: refs/heads/incoming c: c21b3ff h: refs/heads/master i: 30389: 779a304 30387: 8b511a8 30383: 3b4198a v: v3
1 parent b49a57f commit a03e777

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: b4d879a2ef67230813bc6e361787731ca8ecdb04
9+
refs/heads/incoming: c21b3ff81847e9c9bcce83f961dffa385fa059ae
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/libsyntax/ast_util.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ pure fn binop_to_method_name(op: binop) -> Option<~str> {
110110
ge => return Some(~"ge"),
111111
gt => return Some(~"gt"),
112112
eq => return Some(~"eq"),
113-
and | or | ne => return None
113+
ne => return Some(~"ne"),
114+
and | or => return None
114115
}
115116
}
116117

branches/incoming/src/rustc/middle/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4530,7 +4530,7 @@ struct Resolver {
45304530
self.add_fixed_trait_for_expr(expr.id,
45314531
self.lang_items.ord_trait);
45324532
}
4533-
expr_binary(eq, _, _) => {
4533+
expr_binary(eq, _, _) | expr_binary(ne, _, _) => {
45344534
self.add_fixed_trait_for_expr(expr.id,
45354535
self.lang_items.eq_trait);
45364536
}

branches/incoming/src/rustc/middle/typeck/check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ fn check_expr_with_unifier(fcx: @fn_ctxt,
11081108
11091109
// Hack: Unify the two sides if this is a relational operator.
11101110
match op {
1111-
ast::eq | ast::lt | ast::le | ast::ne | ast::ge | ast::gt => {
1111+
ast::eq | ast::ne | ast::lt | ast::le | ast::ge | ast::gt => {
11121112
check_expr_with(fcx, rhs, lhs_t);
11131113
}
11141114
_ => {}

0 commit comments

Comments
 (0)