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.
This commit is contained in:
parent
c434b4b4b6
commit
48f7714819
7 changed files with 26 additions and 25 deletions
|
@ -95,7 +95,7 @@ fn parse_args<'a>(ecx: &ExtCtxt<'a>, sp: Span, tts: TokenStream) -> PResult<'a,
|
|||
while p.token != token::Eof {
|
||||
if !p.eat(&token::Comma) {
|
||||
if first {
|
||||
p.clear_expected_tokens();
|
||||
p.clear_expected_token_types();
|
||||
}
|
||||
|
||||
match p.expect(&token::Comma) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue