@@ -342,6 +342,7 @@ macro_rules! make_ast_visitor {
342342            make_visit!{ PreciseCapturingArg ;  visit_precise_capturing_arg,  walk_precise_capturing_arg} 
343343            make_visit!{ Safety ;  visit_safety,  walk_safety} 
344344            make_visit!{ TraitRef ;  visit_trait_ref,  walk_trait_ref} 
345+             make_visit!{ TyAliasWhereClauses ;  visit_ty_alias_where_clauses,  walk_ty_alias_where_clauses} 
345346            make_visit!{ UseTree ,  id:  NodeId ,  _ nested:  bool ;  visit_use_tree,  walk_use_tree} 
346347            make_visit!{ Variant ;  visit_variant,  walk_variant} 
347348            make_visit!{ VariantData ;  visit_variant_data,  walk_variant_data} 
@@ -951,6 +952,18 @@ macro_rules! make_ast_visitor {
951952            return_result!( V ) 
952953        } 
953954
955+         pub  fn  walk_ty_alias_where_clauses<$( $lt, ) ? V :  $trait$( <$lt>) ?>( 
956+             vis:  & mut  V , 
957+             tawcs:  ref_t!( TyAliasWhereClauses ) 
958+         )  -> result!( V )  { 
959+             let  TyAliasWhereClauses  {  before,  after,  split:  _ }  = tawcs; 
960+             let  TyAliasWhereClause  {  has_where_token:  _,  span:  span_before }  = before; 
961+             let  TyAliasWhereClause  {  has_where_token:  _,  span:  span_after }  = after; 
962+             try_v!( visit_span!( vis,  span_before) ) ; 
963+             try_v!( visit_span!( vis,  span_after) ) ; 
964+             return_result!( V ) 
965+         } 
966+ 
954967        pub  fn  walk_use_tree<$( $lt, ) ? V :  $trait$( <$lt>) ?>( 
955968            vis:  & mut  V , 
956969            use_tree:  ref_t!( UseTree ) , 
@@ -1352,11 +1365,12 @@ pub mod visit {
13521365                    bounds, 
13531366                    ty, 
13541367                    defaultness :  _, 
1355-                     where_clauses :  _ , 
1368+                     where_clauses, 
13561369                } )  => { 
13571370                    try_visit ! ( visitor. visit_generics( generics) ) ; 
13581371                    walk_list ! ( visitor,  visit_param_bound,  bounds,  BoundKind :: Bound ) ; 
13591372                    visit_opt ! ( visitor,  visit_ty,  ty) ; 
1373+                     try_visit ! ( visitor. visit_ty_alias_where_clauses( where_clauses) ) ; 
13601374                } 
13611375                ItemKind :: Enum ( enum_definition,  generics)  => { 
13621376                    try_visit ! ( visitor. visit_generics( generics) ) ; 
@@ -1456,11 +1470,12 @@ pub mod visit {
14561470                    bounds, 
14571471                    ty, 
14581472                    defaultness :  _, 
1459-                     where_clauses :  _ , 
1473+                     where_clauses, 
14601474                } )  => { 
14611475                    try_visit ! ( visitor. visit_generics( generics) ) ; 
14621476                    walk_list ! ( visitor,  visit_param_bound,  bounds,  BoundKind :: Bound ) ; 
14631477                    visit_opt ! ( visitor,  visit_ty,  ty) ; 
1478+                     try_visit ! ( visitor. visit_ty_alias_where_clauses( where_clauses) ) ; 
14641479                } 
14651480                ForeignItemKind :: MacCall ( mac)  => { 
14661481                    try_visit ! ( visitor. visit_mac_call( mac) ) ; 
@@ -1512,11 +1527,12 @@ pub mod visit {
15121527                    bounds, 
15131528                    ty, 
15141529                    defaultness :  _, 
1515-                     where_clauses :  _ , 
1530+                     where_clauses, 
15161531                } )  => { 
15171532                    try_visit ! ( visitor. visit_generics( generics) ) ; 
15181533                    walk_list ! ( visitor,  visit_param_bound,  bounds,  BoundKind :: Bound ) ; 
15191534                    visit_opt ! ( visitor,  visit_ty,  ty) ; 
1535+                     try_visit ! ( visitor. visit_ty_alias_where_clauses( where_clauses) ) ; 
15201536                } 
15211537                AssocItemKind :: MacCall ( mac)  => { 
15221538                    try_visit ! ( visitor. visit_mac_call( mac) ) ; 
@@ -2113,14 +2129,6 @@ pub mod mut_visit {
21132129        smallvec ! [ param] 
21142130    } 
21152131
2116-     fn  walk_ty_alias_where_clauses < T :  MutVisitor > ( vis :  & mut  T ,  tawcs :  & mut  TyAliasWhereClauses )  { 
2117-         let  TyAliasWhereClauses  {  before,  after,  split :  _ }  = tawcs; 
2118-         let  TyAliasWhereClause  {  has_where_token :  _,  span :  span_before }  = before; 
2119-         let  TyAliasWhereClause  {  has_where_token :  _,  span :  span_after }  = after; 
2120-         vis. visit_span ( span_before) ; 
2121-         vis. visit_span ( span_after) ; 
2122-     } 
2123- 
21242132    pub  fn  walk_flat_map_field_def < T :  MutVisitor > ( 
21252133        visitor :  & mut  T , 
21262134        mut  fd :  FieldDef , 
@@ -2190,7 +2198,7 @@ pub mod mut_visit {
21902198                    vis. visit_generics ( generics) ; 
21912199                    visit_bounds ( vis,  bounds,  BoundKind :: Bound ) ; 
21922200                    visit_opt ( ty,  |ty| vis. visit_ty ( ty) ) ; 
2193-                     walk_ty_alias_where_clauses ( vis,   where_clauses) ; 
2201+                     vis. visit_ty_alias_where_clauses ( where_clauses) ; 
21942202                } 
21952203                ItemKind :: Enum ( enum_def,  generics)  => { 
21962204                    vis. visit_generics ( generics) ; 
@@ -2290,7 +2298,7 @@ pub mod mut_visit {
22902298                    visitor. visit_generics ( generics) ; 
22912299                    visit_bounds ( visitor,  bounds,  BoundKind :: Bound ) ; 
22922300                    visit_opt ( ty,  |ty| visitor. visit_ty ( ty) ) ; 
2293-                     walk_ty_alias_where_clauses ( visitor,   where_clauses) ; 
2301+                     visitor. visit_ty_alias_where_clauses ( where_clauses) ; 
22942302                } 
22952303                AssocItemKind :: MacCall ( mac)  => visitor. visit_mac_call ( mac) , 
22962304                AssocItemKind :: Delegation ( box Delegation  { 
@@ -2390,7 +2398,7 @@ pub mod mut_visit {
23902398                    visitor. visit_generics ( generics) ; 
23912399                    visit_bounds ( visitor,  bounds,  BoundKind :: Bound ) ; 
23922400                    visit_opt ( ty,  |ty| visitor. visit_ty ( ty) ) ; 
2393-                     walk_ty_alias_where_clauses ( visitor,   where_clauses) ; 
2401+                     visitor. visit_ty_alias_where_clauses ( where_clauses) ; 
23942402                } 
23952403                ForeignItemKind :: MacCall ( mac)  => visitor. visit_mac_call ( mac) , 
23962404            } 
0 commit comments