1
Fork 0
This commit is contained in:
Michael Lamparski 2019-08-01 17:31:12 -04:00
parent f690098e6d
commit b3321fb26e
3 changed files with 56 additions and 1 deletions

View file

@ -3620,7 +3620,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