Skip to content

Commit c85117c

Browse files
committed
---
yaml --- r: 79691 b: refs/heads/auto c: 118d374 h: refs/heads/master i: 79689: 26d9303 79687: 1f324d8 v: v3
1 parent 9cff411 commit c85117c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: a9ac27270f9ce20aaf6424f6de5128351c70659e
16+
refs/heads/auto: 118d37483237f6be7a1af9d62b68b111586e4128
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc/middle/ty.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4266,8 +4266,7 @@ pub fn is_binopable(cx: ctxt, ty: t, op: ast::BinOp) -> bool {
42664266
static tycat_char: int = 2;
42674267
static tycat_int: int = 3;
42684268
static tycat_float: int = 4;
4269-
static tycat_struct: int = 5;
4270-
static tycat_bot: int = 6;
4269+
static tycat_bot: int = 5;
42714270

42724271
static opcat_add: int = 0;
42734272
static opcat_sub: int = 1;
@@ -4310,7 +4309,6 @@ pub fn is_binopable(cx: ctxt, ty: t, op: ast::BinOp) -> bool {
43104309
ty_bool => tycat_bool,
43114310
ty_int(_) | ty_uint(_) | ty_infer(IntVar(_)) => tycat_int,
43124311
ty_float(_) | ty_infer(FloatVar(_)) => tycat_float,
4313-
ty_tup(_) | ty_enum(_, _) => tycat_struct,
43144312
ty_bot => tycat_bot,
43154313
_ => tycat_other
43164314
}
@@ -4326,8 +4324,7 @@ pub fn is_binopable(cx: ctxt, ty: t, op: ast::BinOp) -> bool {
43264324
/*char*/ [f, f, f, f, t, t, f, f],
43274325
/*int*/ [t, t, t, t, t, t, t, f],
43284326
/*float*/ [t, t, t, f, t, t, f, f],
4329-
/*bot*/ [f, f, f, f, f, f, f, f],
4330-
/*struct*/ [t, t, t, t, f, f, t, t]];
4327+
/*bot*/ [t, t, t, t, f, f, t, t]];
43314328

43324329
return tbl[tycat(cx, ty)][opcat(op)];
43334330
}

0 commit comments

Comments
 (0)