Rollup merge of #103333 - chenyukang:yukang/fix-103143, r=wesleywiser
Fix assertion failed for break_last_token and trailing token Fixes #103143
This commit is contained in:
commit
11d11e3415
5 changed files with 36 additions and 5 deletions
|
@ -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,`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue