diff options
| author | Yuki Okushi <huyuumi.dev+love@gmail.com> | 2022-10-25 08:01:27 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-25 08:01:27 +0900 |
| commit | 11d11e3415a31b587b3cb8a3349e728cb30ada2a (patch) | |
| tree | f6abe3cabd5e1edda09b14e74293a9d4c2ea3af6 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 758f19645b8ebce61ea52d1f6672fd057bc8dbee (diff) | |
| parent | 241435737451c521a78faab31c54457b1cb97413 (diff) | |
| download | rust-11d11e3415a31b587b3cb8a3349e728cb30ada2a.tar.gz rust-11d11e3415a31b587b3cb8a3349e728cb30ada2a.zip | |
Rollup merge of #103333 - chenyukang:yukang/fix-103143, r=wesleywiser
Fix assertion failed for break_last_token and trailing token Fixes #103143
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 98520a446a6..ca216b1cd10 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -3142,6 +3142,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,` |
