Skip to content

Commit 8548eea

Browse files
committed
---
yaml --- r: 32453 b: refs/heads/dist-snap c: c21b3ff h: refs/heads/master i: 32451: 742f2e4 v: v3
1 parent 0d9e568 commit 8548eea

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
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: b4d879a2ef67230813bc6e361787731ca8ecdb04
10+
refs/heads/dist-snap: c21b3ff81847e9c9bcce83f961dffa385fa059ae
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/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/dist-snap/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/dist-snap/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)