From 5c2c670d8fe4e5d0ce0153c6473069f25e01f7fa Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 30 Dec 2013 15:31:40 -0800 Subject: [PATCH] libsyntax: De-`@mut` `Parser::buffer` --- src/libsyntax/parse/parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 467c6f2d81ea..f1fa1c868578 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,