Skip to content

Commit 8aa5762

Browse files
committed
Repair the formatting of the table in is_binopable.
1 parent c50eea1 commit 8aa5762

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/rustc/middle/ty.rs

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3002,21 +3002,18 @@ fn is_binopable(_cx: ctxt, ty: t, op: ast::binop) -> bool {
30023002
const t: bool = true;
30033003
const f: bool = false;
30043004

3005+
let tbl = [
30053006
/*. add, shift, bit
30063007
. sub, rel, logic
30073008
. mult, eq, */
3008-
/*other*/
3009-
/*bool*/
3010-
/*int*/
3011-
/*float*/
3012-
/*str*/
3013-
/*vec*/
3014-
/*bot*/
3015-
let tbl =
3016-
[[f, f, f, f, t, t, f, f], [f, f, f, f, t, t, t, t],
3017-
[t, t, t, t, t, t, t, f], [t, t, t, f, t, t, f, f],
3018-
[t, f, f, f, t, t, f, f], [t, f, f, f, t, t, f, f],
3019-
[f, f, f, f, t, t, f, f], [t, t, t, t, t, t, t, t]]; /*struct*/
3009+
/*other*/ [f, f, f, f, t, t, f, f],
3010+
/*bool*/ [f, f, f, f, t, t, t, t],
3011+
/*int*/ [t, t, t, t, t, t, t, f],
3012+
/*float*/ [t, t, t, f, t, t, f, f],
3013+
/*str*/ [t, f, f, f, t, t, f, f],
3014+
/*vec*/ [t, f, f, f, t, t, f, f],
3015+
/*bot*/ [f, f, f, f, t, t, f, f],
3016+
/*struct*/ [t, t, t, t, t, t, t, t]];
30203017

30213018
ret tbl[tycat(ty)][opcat(op)];
30223019
}

0 commit comments

Comments
 (0)