about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-12-30 15:31:40 -0800
committerPatrick Walton <pcwalton@mimiga.net>2014-01-02 14:16:07 -0800
commit5c2c670d8fe4e5d0ce0153c6473069f25e01f7fa (patch)
treef03ff21f68e247b992c4bc016a193ed4bc8e1423 /src/libsyntax/parse
parent044ad56824e81865d3b46f812b815f355388a716 (diff)
downloadrust-5c2c670d8fe4e5d0ce0153c6473069f25e01f7fa.tar.gz
rust-5c2c670d8fe4e5d0ce0153c6473069f25e01f7fa.zip
libsyntax: De-`@mut` `Parser::buffer`
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 467c6f2d81e..f1fa1c86857 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -305,12 +305,12 @@ pub fn Parser(sess: @mut ParseSess, cfg: ast::CrateConfig, rdr: @mut reader)
         span: span,
         last_span: span,
         last_token: None,
-        buffer: @mut ([
+        buffer: [
             placeholder.clone(),
             placeholder.clone(),
             placeholder.clone(),
             placeholder.clone(),
-        ]),
+        ],
         buffer_start: @mut 0,
         buffer_end: @mut 0,
         tokens_consumed: @mut 0,
@@ -335,7 +335,7 @@ pub struct Parser {
     last_span: Span,
     // the previous token or None (only stashed sometimes).
     last_token: Option<~token::Token>,
-    buffer: @mut [TokenAndSpan, ..4],
+    buffer: [TokenAndSpan, ..4],
     buffer_start: @mut int,
     buffer_end: @mut int,
     tokens_consumed: @mut uint,