@@ -306,7 +306,7 @@ pub struct Invocation {
306306
307307pub  enum  InvocationKind  { 
308308    Bang  { 
309-         mac :  ast:: MacCall , 
309+         mac :  P < ast:: MacCall > , 
310310        span :  Span , 
311311    } , 
312312    Attr  { 
@@ -1017,7 +1017,7 @@ trait InvocationCollectorNode: HasAttrs + HasNodeId + Sized {
10171017    fn  is_mac_call ( & self )  -> bool  { 
10181018        false 
10191019    } 
1020-     fn  take_mac_call ( self )  -> ( ast:: MacCall ,  Self :: AttrsTy ,  AddSemicolon )  { 
1020+     fn  take_mac_call ( self )  -> ( P < ast:: MacCall > ,  Self :: AttrsTy ,  AddSemicolon )  { 
10211021        unreachable ! ( ) 
10221022    } 
10231023    fn  pre_flat_map_node_collect_attr ( _cfg :  & StripUnconfigured < ' _ > ,  _attr :  & ast:: Attribute )  { } 
@@ -1046,7 +1046,7 @@ impl InvocationCollectorNode for P<ast::Item> {
10461046    fn  is_mac_call ( & self )  -> bool  { 
10471047        matches ! ( self . kind,  ItemKind :: MacCall ( ..) ) 
10481048    } 
1049-     fn  take_mac_call ( self )  -> ( ast:: MacCall ,  Self :: AttrsTy ,  AddSemicolon )  { 
1049+     fn  take_mac_call ( self )  -> ( P < ast:: MacCall > ,  Self :: AttrsTy ,  AddSemicolon )  { 
10501050        let  node = self . into_inner ( ) ; 
10511051        match  node. kind  { 
10521052            ItemKind :: MacCall ( mac)  => ( mac,  node. attrs ,  AddSemicolon :: No ) , 
@@ -1154,7 +1154,7 @@ impl InvocationCollectorNode for AstNodeWrapper<P<ast::AssocItem>, TraitItemTag>
11541154    fn  is_mac_call ( & self )  -> bool  { 
11551155        matches ! ( self . wrapped. kind,  AssocItemKind :: MacCall ( ..) ) 
11561156    } 
1157-     fn  take_mac_call ( self )  -> ( ast:: MacCall ,  Self :: AttrsTy ,  AddSemicolon )  { 
1157+     fn  take_mac_call ( self )  -> ( P < ast:: MacCall > ,  Self :: AttrsTy ,  AddSemicolon )  { 
11581158        let  item = self . wrapped . into_inner ( ) ; 
11591159        match  item. kind  { 
11601160            AssocItemKind :: MacCall ( mac)  => ( mac,  item. attrs ,  AddSemicolon :: No ) , 
@@ -1179,7 +1179,7 @@ impl InvocationCollectorNode for AstNodeWrapper<P<ast::AssocItem>, ImplItemTag>
11791179    fn  is_mac_call ( & self )  -> bool  { 
11801180        matches ! ( self . wrapped. kind,  AssocItemKind :: MacCall ( ..) ) 
11811181    } 
1182-     fn  take_mac_call ( self )  -> ( ast:: MacCall ,  Self :: AttrsTy ,  AddSemicolon )  { 
1182+     fn  take_mac_call ( self )  -> ( P < ast:: MacCall > ,  Self :: AttrsTy ,  AddSemicolon )  { 
11831183        let  item = self . wrapped . into_inner ( ) ; 
11841184        match  item. kind  { 
11851185            AssocItemKind :: MacCall ( mac)  => ( mac,  item. attrs ,  AddSemicolon :: No ) , 
@@ -1202,7 +1202,7 @@ impl InvocationCollectorNode for P<ast::ForeignItem> {
12021202    fn  is_mac_call ( & self )  -> bool  { 
12031203        matches ! ( self . kind,  ForeignItemKind :: MacCall ( ..) ) 
12041204    } 
1205-     fn  take_mac_call ( self )  -> ( ast:: MacCall ,  Self :: AttrsTy ,  AddSemicolon )  { 
1205+     fn  take_mac_call ( self )  -> ( P < ast:: MacCall > ,  Self :: AttrsTy ,  AddSemicolon )  { 
12061206        let  node = self . into_inner ( ) ; 
12071207        match  node. kind  { 
12081208            ForeignItemKind :: MacCall ( mac)  => ( mac,  node. attrs ,  AddSemicolon :: No ) , 
@@ -1323,7 +1323,7 @@ impl InvocationCollectorNode for ast::Stmt {
13231323            StmtKind :: Local ( ..)  | StmtKind :: Empty  => false , 
13241324        } 
13251325    } 
1326-     fn  take_mac_call ( self )  -> ( ast:: MacCall ,  Self :: AttrsTy ,  AddSemicolon )  { 
1326+     fn  take_mac_call ( self )  -> ( P < ast:: MacCall > ,  Self :: AttrsTy ,  AddSemicolon )  { 
13271327        // We pull macro invocations (both attributes and fn-like macro calls) out of their 
13281328        // `StmtKind`s and treat them as statement macro invocations, not as items or expressions. 
13291329        let  ( add_semicolon,  mac,  attrs)  = match  self . kind  { 
@@ -1387,7 +1387,7 @@ impl InvocationCollectorNode for P<ast::Ty> {
13871387    fn  is_mac_call ( & self )  -> bool  { 
13881388        matches ! ( self . kind,  ast:: TyKind :: MacCall ( ..) ) 
13891389    } 
1390-     fn  take_mac_call ( self )  -> ( ast:: MacCall ,  Self :: AttrsTy ,  AddSemicolon )  { 
1390+     fn  take_mac_call ( self )  -> ( P < ast:: MacCall > ,  Self :: AttrsTy ,  AddSemicolon )  { 
13911391        let  node = self . into_inner ( ) ; 
13921392        match  node. kind  { 
13931393            TyKind :: MacCall ( mac)  => ( mac,  Vec :: new ( ) ,  AddSemicolon :: No ) , 
@@ -1411,7 +1411,7 @@ impl InvocationCollectorNode for P<ast::Pat> {
14111411    fn  is_mac_call ( & self )  -> bool  { 
14121412        matches ! ( self . kind,  PatKind :: MacCall ( ..) ) 
14131413    } 
1414-     fn  take_mac_call ( self )  -> ( ast:: MacCall ,  Self :: AttrsTy ,  AddSemicolon )  { 
1414+     fn  take_mac_call ( self )  -> ( P < ast:: MacCall > ,  Self :: AttrsTy ,  AddSemicolon )  { 
14151415        let  node = self . into_inner ( ) ; 
14161416        match  node. kind  { 
14171417            PatKind :: MacCall ( mac)  => ( mac,  Vec :: new ( ) ,  AddSemicolon :: No ) , 
@@ -1439,7 +1439,7 @@ impl InvocationCollectorNode for P<ast::Expr> {
14391439    fn  is_mac_call ( & self )  -> bool  { 
14401440        matches ! ( self . kind,  ExprKind :: MacCall ( ..) ) 
14411441    } 
1442-     fn  take_mac_call ( self )  -> ( ast:: MacCall ,  Self :: AttrsTy ,  AddSemicolon )  { 
1442+     fn  take_mac_call ( self )  -> ( P < ast:: MacCall > ,  Self :: AttrsTy ,  AddSemicolon )  { 
14431443        let  node = self . into_inner ( ) ; 
14441444        match  node. kind  { 
14451445            ExprKind :: MacCall ( mac)  => ( mac,  node. attrs ,  AddSemicolon :: No ) , 
@@ -1466,7 +1466,7 @@ impl InvocationCollectorNode for AstNodeWrapper<P<ast::Expr>, OptExprTag> {
14661466    fn  is_mac_call ( & self )  -> bool  { 
14671467        matches ! ( self . wrapped. kind,  ast:: ExprKind :: MacCall ( ..) ) 
14681468    } 
1469-     fn  take_mac_call ( self )  -> ( ast:: MacCall ,  Self :: AttrsTy ,  AddSemicolon )  { 
1469+     fn  take_mac_call ( self )  -> ( P < ast:: MacCall > ,  Self :: AttrsTy ,  AddSemicolon )  { 
14701470        let  node = self . wrapped . into_inner ( ) ; 
14711471        match  node. kind  { 
14721472            ExprKind :: MacCall ( mac)  => ( mac,  node. attrs ,  AddSemicolon :: No ) , 
@@ -1512,7 +1512,7 @@ impl<'a, 'b> InvocationCollector<'a, 'b> {
15121512        placeholder ( fragment_kind,  NodeId :: placeholder_from_expn_id ( expn_id) ,  vis) 
15131513    } 
15141514
1515-     fn  collect_bang ( & mut  self ,  mac :  ast:: MacCall ,  kind :  AstFragmentKind )  -> AstFragment  { 
1515+     fn  collect_bang ( & mut  self ,  mac :  P < ast:: MacCall > ,  kind :  AstFragmentKind )  -> AstFragment  { 
15161516        // cache the macro call span so that it can be 
15171517        // easily adjusted for incremental compilation 
15181518        let  span = mac. span ( ) ; 
0 commit comments