Rollup merge of #63202 - exphp-forks:parser-ice-63135, r=estebank
Fix ICE in #63135 Closes #63135. r?@estebank
This commit is contained in:
commit
3396550420
3 changed files with 56 additions and 1 deletions
|
@ -3592,7 +3592,15 @@ impl<'a> Parser<'a> {
|
|||
let mut etc_span = None;
|
||||
|
||||
while self.token != token::CloseDelim(token::Brace) {
|
||||
let attrs = self.parse_outer_attributes()?;
|
||||
let attrs = match self.parse_outer_attributes() {
|
||||
Ok(attrs) => attrs,
|
||||
Err(err) => {
|
||||
if let Some(mut delayed) = delayed_err {
|
||||
delayed.emit();
|
||||
}
|
||||
return Err(err);
|
||||
},
|
||||
};
|
||||
let lo = self.token.span;
|
||||
|
||||
// check that a comma comes after every field
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue