about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorBen Striegel <ben.striegel@gmail.com>2012-10-10 00:28:04 -0400
committerBrian Anderson <banderson@mozilla.com>2012-10-20 17:50:46 -0700
commitac81fff22926d464f7a90f14c4c8f846569e75e0 (patch)
treecc94e2558cdea7c88c56c4125b56556e1dc40419 /src/libsyntax/parse/parser.rs
parent4174688dd48f4967e08c0aecc7a2a90dc28a56da (diff)
downloadrust-ac81fff22926d464f7a90f14c4c8f846569e75e0.tar.gz
rust-ac81fff22926d464f7a90f14c4c8f846569e75e0.zip
Remove old fixed-length vector syntax
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 8636c51b369..46905b8fe01 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -207,12 +207,7 @@ fn Parser(sess: parse_sess, cfg: ast::crate_cfg,
         token: tok0.tok,
         span: span0,
         last_span: span0,
-        buffer: [mut
-            {tok: tok0.tok, sp: span0},
-            {tok: tok0.tok, sp: span0},
-            {tok: tok0.tok, sp: span0},
-            {tok: tok0.tok, sp: span0}
-        ]/4,
+        buffer: [mut {tok: tok0.tok, sp: span0}, ..4],
         buffer_start: 0,
         buffer_end: 0,
         restriction: UNRESTRICTED,
@@ -231,7 +226,7 @@ struct Parser {
     mut token: token::Token,
     mut span: span,
     mut last_span: span,
-    mut buffer: [mut {tok: token::Token, sp: span}]/4,
+    mut buffer: [mut {tok: token::Token, sp: span} * 4],
     mut buffer_start: int,
     mut buffer_end: int,
     mut restriction: restriction,