about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2022-12-28 18:26:59 -0800
committerEsteban Küber <esteban@kuber.com.ar>2022-12-28 18:30:18 -0800
commit38fd5a9acfd4893e572f20591ffea4f3cfd2fc2e (patch)
tree915f00bd64d1abb9f1765917ab0fef03bb53eb42 /compiler/rustc_parse/src/parser/expr.rs
parent375f02580522ddacb4777d194d48d82454bb6aa9 (diff)
downloadrust-38fd5a9acfd4893e572f20591ffea4f3cfd2fc2e.tar.gz
rust-38fd5a9acfd4893e572f20591ffea4f3cfd2fc2e.zip
Account for ADT bodies and struct expressions
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
-rw-r--r--compiler/rustc_parse/src/parser/expr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs
index 6a115088eca..1fc1ffd6cb6 100644
--- a/compiler/rustc_parse/src/parser/expr.rs
+++ b/compiler/rustc_parse/src/parser/expr.rs
@@ -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;