about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Sullivan <sully@msully.net>2012-06-20 16:14:53 -0700
committerMichael Sullivan <sully@msully.net>2012-06-20 16:29:47 -0700
commit8aa5762d2eed9e64bfe01f31069a3cbb90b1d5f4 (patch)
tree74a2e156677dcab1c34aebf4e18f859a03d109de
parentc50eea17d4bbb3aa26ea08ef107a11048c67047d (diff)
downloadrust-8aa5762d2eed9e64bfe01f31069a3cbb90b1d5f4.tar.gz
rust-8aa5762d2eed9e64bfe01f31069a3cbb90b1d5f4.zip
Repair the formatting of the table in is_binopable.
-rw-r--r--src/rustc/middle/ty.rs21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/rustc/middle/ty.rs b/src/rustc/middle/ty.rs
index 890295490e9..e3cd479a124 100644
--- a/src/rustc/middle/ty.rs
+++ b/src/rustc/middle/ty.rs
@@ -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)];
 }