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:33:39 -0800
committerPatrick Walton <pcwalton@mimiga.net>2014-01-02 14:16:08 -0800
commit6992a5c77d948a5600f719387786c51d36fdcd0a (patch)
tree64a7ec486be8d696a5695bb96e3016683228e174 /src/libsyntax/parse
parent55a90f592820572d08dca3475aa6fb3cc190fc29 (diff)
downloadrust-6992a5c77d948a5600f719387786c51d36fdcd0a.tar.gz
rust-6992a5c77d948a5600f719387786c51d36fdcd0a.zip
libsyntax: De-`@mut` `Parser::tokens_consumed`
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 531823e4da0..c7f0996dfc6 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -313,7 +313,7 @@ pub fn Parser(sess: @mut ParseSess, cfg: ast::CrateConfig, rdr: @mut reader)
         ],
         buffer_start: 0,
         buffer_end: 0,
-        tokens_consumed: @mut 0,
+        tokens_consumed: 0,
         restriction: @mut UNRESTRICTED,
         quote_depth: 0,
         obsolete_set: @mut HashSet::new(),
@@ -338,7 +338,7 @@ pub struct Parser {
     buffer: [TokenAndSpan, ..4],
     buffer_start: int,
     buffer_end: int,
-    tokens_consumed: @mut uint,
+    tokens_consumed: uint,
     restriction: @mut restriction,
     quote_depth: uint, // not (yet) related to the quasiquoter
     reader: @mut reader,
@@ -749,7 +749,7 @@ impl Parser {
         };
         self.span = next.sp;
         self.token = next.tok;
-        *self.tokens_consumed += 1u;
+        self.tokens_consumed += 1u;
     }
 
     // Advance the parser by one token and return the bumped token.