File tree 1 file changed +7
-6
lines changed
compiler/rustc_parse/src/parser
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1503,12 +1503,13 @@ impl<'a> Parser<'a> {
1503
1503
prior_type_ascription : self . last_type_ascription ,
1504
1504
} ) ;
1505
1505
( lo. to ( self . prev_token . span ) , ExprKind :: MacCall ( mac) )
1506
- } else if self . check ( & token:: OpenDelim ( Delimiter :: Brace ) ) &&
1507
- let Some ( expr) = self . maybe_parse_struct_expr ( & qself, & path) {
1508
- if qself. is_some ( ) {
1509
- self . sess . gated_spans . gate ( sym:: more_qualified_paths, path. span ) ;
1510
- }
1511
- return expr;
1506
+ } else if self . check ( & token:: OpenDelim ( Delimiter :: Brace ) )
1507
+ && let Some ( expr) = self . maybe_parse_struct_expr ( & qself, & path)
1508
+ {
1509
+ if qself. is_some ( ) {
1510
+ self . sess . gated_spans . gate ( sym:: more_qualified_paths, path. span ) ;
1511
+ }
1512
+ return expr;
1512
1513
} else {
1513
1514
( path. span , ExprKind :: Path ( qself, path) )
1514
1515
} ;
You can’t perform that action at this time.
0 commit comments