File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
compiler/rustc_parse/src/parser Expand file tree Collapse file tree 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> {
15031503 prior_type_ascription : self . last_type_ascription ,
15041504 } ) ;
15051505 ( 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;
15121513 } else {
15131514 ( path. span , ExprKind :: Path ( qself, path) )
15141515 } ;
You can’t perform that action at this time.
0 commit comments