syntax: Use Token in Parser

This commit is contained in:
Vadim Petrochenkov
2019-06-05 01:17:07 +03:00
parent c0c57acd7b
commit aa6fba98ae
10 changed files with 126 additions and 126 deletions

View File

@@ -149,7 +149,7 @@ fn parse_args<'a>(
} // accept trailing commas
if named || (p.token.is_ident() && p.look_ahead(1, |t| *t == token::Eq)) {
named = true;
let ident = if let token::Ident(i, _) = p.token {
let ident = if let token::Ident(i, _) = p.token.kind {
p.bump();
i
} else {