Skip to content

Commit 6ae5137

Browse files
committed
---
yaml --- r: 28369 b: refs/heads/try c: c21b3ff h: refs/heads/master i: 28367: 9b00bf6 v: v3
1 parent a6e4ff0 commit 6ae5137

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
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: b4d879a2ef67230813bc6e361787731ca8ecdb04
5+
refs/heads/try: c21b3ff81847e9c9bcce83f961dffa385fa059ae
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/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/try/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/try/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)