@@ -310,7 +310,7 @@ impl<'a> Parser<'a> {
310310 path,
311311 lo,
312312 parse_plus,
313- ast:: Grouping :: None ,
313+ ast:: Parens :: No ,
314314 ) ?;
315315 let err = self . dcx ( ) . create_err ( errors:: TransposeDynOrImpl {
316316 span : kw. span ,
@@ -343,7 +343,7 @@ impl<'a> Parser<'a> {
343343 path,
344344 lo,
345345 parse_plus,
346- ast:: Grouping :: None ,
346+ ast:: Parens :: No ,
347347 ) ?
348348 }
349349 }
@@ -429,7 +429,7 @@ impl<'a> Parser<'a> {
429429 path,
430430 lo,
431431 true ,
432- ast:: Grouping :: Parenthesized ,
432+ ast:: Parens :: Yes ,
433433 ) ,
434434 // For `('a) + …`, we know that `'a` in type position already lead to an error being
435435 // emitted. To reduce output, let's indirectly suppress E0178 (bad `+` in type) and
@@ -510,14 +510,14 @@ impl<'a> Parser<'a> {
510510 path : ast:: Path ,
511511 lo : Span ,
512512 parse_plus : bool ,
513- grouping : ast:: Grouping ,
513+ parens : ast:: Parens ,
514514 ) -> PResult < ' a , TyKind > {
515515 let poly_trait_ref = PolyTraitRef :: new (
516516 generic_params,
517517 path,
518518 TraitBoundModifiers :: NONE ,
519519 lo. to ( self . prev_token . span ) ,
520- grouping ,
520+ parens ,
521521 ) ;
522522 let bounds = vec ! [ GenericBound :: Trait ( poly_trait_ref) ] ;
523523 self . parse_remaining_bounds ( bounds, parse_plus)
@@ -849,7 +849,7 @@ impl<'a> Parser<'a> {
849849 Ok ( TyKind :: MacCall ( P ( MacCall { path, args : self . parse_delim_args ( ) ? } ) ) )
850850 } else if allow_plus == AllowPlus :: Yes && self . check_plus ( ) {
851851 // `Trait1 + Trait2 + 'a`
852- self . parse_remaining_bounds_path ( ThinVec :: new ( ) , path, lo, true , ast:: Grouping :: None )
852+ self . parse_remaining_bounds_path ( ThinVec :: new ( ) , path, lo, true , ast:: Parens :: No )
853853 } else {
854854 // Just a type path.
855855 Ok ( TyKind :: Path ( None , path) )
@@ -1207,7 +1207,7 @@ impl<'a> Parser<'a> {
12071207 }
12081208 }
12091209
1210- let grouping = if has_parens { ast:: Grouping :: Parenthesized } else { ast:: Grouping :: None } ;
1210+ let grouping = if has_parens { ast:: Parens :: Yes } else { ast:: Parens :: No } ;
12111211 let poly_trait = PolyTraitRef :: new (
12121212 lifetime_defs,
12131213 path,
0 commit comments