diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-12-03 20:09:29 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-12-19 16:05:41 +1100 |
| commit | 48f7714819525ec5b361ea480eaecea61620a56b (patch) | |
| tree | 3e1f0400a1efa47a4a45663abdad17881e682775 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | c434b4b4b6cd20560c5b32e80b2b22618a4da3dd (diff) | |
| download | rust-48f7714819525ec5b361ea480eaecea61620a56b.tar.gz rust-48f7714819525ec5b361ea480eaecea61620a56b.zip | |
Rename `Parser::expected_tokens` as `Parser::expected_token_types`.
Because the `Token` type is similar to but different to the `TokenType` type, and the difference is important, so we want to avoid confusion.
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 2f34dcb9308..1e84b2a0cf8 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -153,7 +153,7 @@ impl<'a> Parser<'a> { return Ok((lhs, parsed_something)); } - self.expected_tokens.push(TokenType::Operator); + self.expected_token_types.push(TokenType::Operator); while let Some(op) = self.check_assoc_op() { let lhs_span = self.interpolated_or_expr_span(&lhs); let cur_op_span = self.token.span; |
