Account for ADT bodies and struct expressions
This commit is contained in:
parent
375f025805
commit
38fd5a9acf
12 changed files with 142 additions and 2 deletions
|
@ -3039,6 +3039,7 @@ impl<'a> Parser<'a> {
|
|||
/// Parses `ident (COLON expr)?`.
|
||||
fn parse_expr_field(&mut self) -> PResult<'a, ExprField> {
|
||||
let attrs = self.parse_outer_attributes()?;
|
||||
self.recover_diff_marker();
|
||||
self.collect_tokens_trailing_token(attrs, ForceCollect::No, |this, attrs| {
|
||||
let lo = this.token.span;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue