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:30:56 -0800
committerPatrick Walton <pcwalton@mimiga.net>2014-01-02 14:16:07 -0800
commit044ad56824e81865d3b46f812b815f355388a716 (patch)
tree77f44c3bc29a1d5955156ecfb11d84a1114d54fc /src/libsyntax/parse
parentcc3e6ecbfd4e95c7fe37df676bc05993885fa181 (diff)
downloadrust-044ad56824e81865d3b46f812b815f355388a716.tar.gz
rust-044ad56824e81865d3b46f812b815f355388a716.zip
libsyntax: De-`@mut` `Parser::last_token`
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 0f4cc2ae5cd..467c6f2d81e 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -304,7 +304,7 @@ pub fn Parser(sess: @mut ParseSess, cfg: ast::CrateConfig, rdr: @mut reader)
         token: tok0.tok,
         span: span,
         last_span: span,
-        last_token: @mut None,
+        last_token: None,
         buffer: @mut ([
             placeholder.clone(),
             placeholder.clone(),
@@ -334,7 +334,7 @@ pub struct Parser {
     // the span of the prior token:
     last_span: Span,
     // the previous token or None (only stashed sometimes).
-    last_token: @mut Option<~token::Token>,
+    last_token: Option<~token::Token>,
     buffer: @mut [TokenAndSpan, ..4],
     buffer_start: @mut int,
     buffer_end: @mut int,
@@ -728,7 +728,7 @@ impl Parser {
     pub fn bump(&mut self) {
         self.last_span = self.span;
         // Stash token for error recovery (sometimes; clone is not necessarily cheap).
-        *self.last_token = if is_ident_or_path(&self.token) {
+        self.last_token = if is_ident_or_path(&self.token) {
             Some(~self.token.clone())
         } else {
             None