diff options
| author | Ben Striegel <ben.striegel@gmail.com> | 2012-10-10 00:28:04 -0400 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-10-20 17:50:46 -0700 |
| commit | ac81fff22926d464f7a90f14c4c8f846569e75e0 (patch) | |
| tree | cc94e2558cdea7c88c56c4125b56556e1dc40419 /src/libsyntax/parse/parser.rs | |
| parent | 4174688dd48f4967e08c0aecc7a2a90dc28a56da (diff) | |
| download | rust-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.rs | 9 |
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, |
