Repair the formatting of the table in is_binopable.
This commit is contained in:
parent
c50eea17d4
commit
8aa5762d2e
@ -3002,21 +3002,18 @@ fn is_binopable(_cx: ctxt, ty: t, op: ast::binop) -> bool {
|
||||
const t: bool = true;
|
||||
const f: bool = false;
|
||||
|
||||
let tbl = [
|
||||
/*. add, shift, bit
|
||||
. sub, rel, logic
|
||||
. mult, eq, */
|
||||
/*other*/
|
||||
/*bool*/
|
||||
/*int*/
|
||||
/*float*/
|
||||
/*str*/
|
||||
/*vec*/
|
||||
/*bot*/
|
||||
let tbl =
|
||||
[[f, f, f, f, t, t, f, f], [f, f, f, f, t, t, t, t],
|
||||
[t, t, t, t, t, t, t, f], [t, t, t, f, t, t, f, f],
|
||||
[t, f, f, f, t, t, f, f], [t, f, f, f, t, t, f, f],
|
||||
[f, f, f, f, t, t, f, f], [t, t, t, t, t, t, t, t]]; /*struct*/
|
||||
/*other*/ [f, f, f, f, t, t, f, f],
|
||||
/*bool*/ [f, f, f, f, t, t, t, t],
|
||||
/*int*/ [t, t, t, t, t, t, t, f],
|
||||
/*float*/ [t, t, t, f, t, t, f, f],
|
||||
/*str*/ [t, f, f, f, t, t, f, f],
|
||||
/*vec*/ [t, f, f, f, t, t, f, f],
|
||||
/*bot*/ [f, f, f, f, t, t, f, f],
|
||||
/*struct*/ [t, t, t, t, t, t, t, t]];
|
||||
|
||||
ret tbl[tycat(ty)][opcat(op)];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user