@@ -310,7 +310,7 @@ impl<'a> Parser<'a> {
310
310
path,
311
311
lo,
312
312
parse_plus,
313
- ast:: Grouping :: None ,
313
+ ast:: Parens :: No ,
314
314
) ?;
315
315
let err = self . dcx ( ) . create_err ( errors:: TransposeDynOrImpl {
316
316
span : kw. span ,
@@ -343,7 +343,7 @@ impl<'a> Parser<'a> {
343
343
path,
344
344
lo,
345
345
parse_plus,
346
- ast:: Grouping :: None ,
346
+ ast:: Parens :: No ,
347
347
) ?
348
348
}
349
349
}
@@ -429,7 +429,7 @@ impl<'a> Parser<'a> {
429
429
path,
430
430
lo,
431
431
true ,
432
- ast:: Grouping :: Parenthesized ,
432
+ ast:: Parens :: Yes ,
433
433
) ,
434
434
// For `('a) + …`, we know that `'a` in type position already lead to an error being
435
435
// emitted. To reduce output, let's indirectly suppress E0178 (bad `+` in type) and
@@ -510,14 +510,14 @@ impl<'a> Parser<'a> {
510
510
path : ast:: Path ,
511
511
lo : Span ,
512
512
parse_plus : bool ,
513
- grouping : ast:: Grouping ,
513
+ parens : ast:: Parens ,
514
514
) -> PResult < ' a , TyKind > {
515
515
let poly_trait_ref = PolyTraitRef :: new (
516
516
generic_params,
517
517
path,
518
518
TraitBoundModifiers :: NONE ,
519
519
lo. to ( self . prev_token . span ) ,
520
- grouping ,
520
+ parens ,
521
521
) ;
522
522
let bounds = vec ! [ GenericBound :: Trait ( poly_trait_ref) ] ;
523
523
self . parse_remaining_bounds ( bounds, parse_plus)
@@ -849,7 +849,7 @@ impl<'a> Parser<'a> {
849
849
Ok ( TyKind :: MacCall ( P ( MacCall { path, args : self . parse_delim_args ( ) ? } ) ) )
850
850
} else if allow_plus == AllowPlus :: Yes && self . check_plus ( ) {
851
851
// `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 )
853
853
} else {
854
854
// Just a type path.
855
855
Ok ( TyKind :: Path ( None , path) )
@@ -1207,7 +1207,7 @@ impl<'a> Parser<'a> {
1207
1207
}
1208
1208
}
1209
1209
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 } ;
1211
1211
let poly_trait = PolyTraitRef :: new (
1212
1212
lifetime_defs,
1213
1213
path,
0 commit comments