We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab821ae commit 4cb5643Copy full SHA for 4cb5643
compiler/rustc_ast/src/util/parser.rs
@@ -392,7 +392,8 @@ pub fn contains_exterior_struct_lit(value: &ast::Expr) -> bool {
392
| ast::ExprKind::Cast(x, _)
393
| ast::ExprKind::Type(x, _)
394
| ast::ExprKind::Field(x, _)
395
- | ast::ExprKind::Index(x, _, _) => {
+ | ast::ExprKind::Index(x, _, _)
396
+ | ast::ExprKind::Match(x, _, ast::MatchKind::Postfix) => {
397
// &X { y: 1 }, X { y: 1 }.y
398
contains_exterior_struct_lit(x)
399
}
0 commit comments