diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2017-01-17 03:14:42 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2017-01-17 03:14:42 +0000 |
| commit | f2d14077439a3037941781b7b53ea4e9ef19f52c (patch) | |
| tree | 2af772144e1fbb7c631333add78c0d2dacedd08a /src/libsyntax/parse/parser.rs | |
| parent | 6fe23719feb20c25a8b2693d1f196e72d8da9af5 (diff) | |
| download | rust-f2d14077439a3037941781b7b53ea4e9ef19f52c.tar.gz rust-f2d14077439a3037941781b7b53ea4e9ef19f52c.zip | |
Remove field `tokens_consumed` of `Parser`.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 167fa78d7e0..9ba6d4d17f7 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -185,7 +185,6 @@ pub struct Parser<'a> { /// the previous token kind prev_token_kind: PrevTokenKind, lookahead_buffer: LookaheadBuffer, - pub tokens_consumed: usize, pub restrictions: Restrictions, pub quote_depth: usize, // not (yet) related to the quasiquoter parsing_token_tree: bool, @@ -282,7 +281,6 @@ impl<'a> Parser<'a> { prev_span: syntax_pos::DUMMY_SP, prev_token_kind: PrevTokenKind::Other, lookahead_buffer: Default::default(), - tokens_consumed: 0, restrictions: Restrictions::empty(), quote_depth: 0, parsing_token_tree: false, @@ -902,7 +900,6 @@ impl<'a> Parser<'a> { }; self.span = next.sp; self.token = next.tok; - self.tokens_consumed += 1; self.expected_tokens.clear(); // check after each token self.check_unknown_macro_variable(); |
