1
Fork 0

Mark Parser::eat/check methods as must_use

This commit is contained in:
Michael Goulet 2024-07-29 21:21:15 -04:00
parent 612a33f20b
commit e4076e34f8
9 changed files with 44 additions and 13 deletions

View file

@ -178,7 +178,8 @@ impl<'a> Parser<'a> {
span: this.prev_token.span,
});
this.eat(&token::Comma);
// Eat a trailing comma, if it exists.
let _ = this.eat(&token::Comma);
}
let param = if this.check_lifetime() {