diff options
| author | yukang <moorekang@gmail.com> | 2022-10-20 19:40:21 +0800 |
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2022-10-20 20:16:27 +0800 |
| commit | 241435737451c521a78faab31c54457b1cb97413 (patch) | |
| tree | dce68bcbaee7a088b7202a225cc992f96dc006af /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 53728ff751df4c271d4ea565b6871057a3504fc5 (diff) | |
| download | rust-241435737451c521a78faab31c54457b1cb97413.tar.gz rust-241435737451c521a78faab31c54457b1cb97413.zip | |
fix assertion failed for break_last_token and trailing token
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index afa116ce1bc..d9d20195c5f 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -3080,6 +3080,8 @@ impl<'a> Parser<'a> { && this.token.kind == token::Semi { TrailingToken::Semi + } else if this.token.kind == token::Gt { + TrailingToken::Gt } else { // FIXME - pass this through from the place where we know // we need a comma, rather than assuming that `#[attr] expr,` |
