Skip to content

Commit 9380397

Browse files
committed
libsyntax: De-@mut Parser::tokens_consumed
1 parent e9f5c15 commit 9380397

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ pub fn Parser(sess: @mut ParseSess, cfg: ast::CrateConfig, rdr: @mut reader)
313313
],
314314
buffer_start: 0,
315315
buffer_end: 0,
316-
tokens_consumed: @mut 0,
316+
tokens_consumed: 0,
317317
restriction: @mut UNRESTRICTED,
318318
quote_depth: 0,
319319
obsolete_set: @mut HashSet::new(),
@@ -338,7 +338,7 @@ pub struct Parser {
338338
buffer: [TokenAndSpan, ..4],
339339
buffer_start: int,
340340
buffer_end: int,
341-
tokens_consumed: @mut uint,
341+
tokens_consumed: uint,
342342
restriction: @mut restriction,
343343
quote_depth: uint, // not (yet) related to the quasiquoter
344344
reader: @mut reader,
@@ -749,7 +749,7 @@ impl Parser {
749749
};
750750
self.span = next.sp;
751751
self.token = next.tok;
752-
*self.tokens_consumed += 1u;
752+
self.tokens_consumed += 1u;
753753
}
754754

755755
// Advance the parser by one token and return the bumped token.

0 commit comments

Comments
 (0)