@@ -20,14 +20,14 @@ use crate::errors;
2020struct  ProcMacroDerive  { 
2121    id :  NodeId , 
2222    trait_name :  Symbol , 
23-     function_name :  Ident , 
23+     function_ident :  Ident , 
2424    span :  Span , 
2525    attrs :  Vec < Symbol > , 
2626} 
2727
2828struct  ProcMacroDef  { 
2929    id :  NodeId , 
30-     function_name :  Ident , 
30+     function_ident :  Ident , 
3131    span :  Span , 
3232} 
3333
@@ -95,7 +95,7 @@ impl<'a> CollectProcMacros<'a> {
9595    fn  collect_custom_derive ( 
9696        & mut  self , 
9797        item :  & ' a  ast:: Item , 
98-         function_name :  Ident , 
98+         function_ident :  Ident , 
9999        attr :  & ' a  ast:: Attribute , 
100100    )  { 
101101        let  Some ( ( trait_name,  proc_attrs) )  =
@@ -109,7 +109,7 @@ impl<'a> CollectProcMacros<'a> {
109109                id :  item. id , 
110110                span :  item. span , 
111111                trait_name, 
112-                 function_name , 
112+                 function_ident , 
113113                attrs :  proc_attrs, 
114114            } ) ) ; 
115115        }  else  { 
@@ -123,12 +123,12 @@ impl<'a> CollectProcMacros<'a> {
123123        } 
124124    } 
125125
126-     fn  collect_attr_proc_macro ( & mut  self ,  item :  & ' a  ast:: Item ,  function_name :  Ident )  { 
126+     fn  collect_attr_proc_macro ( & mut  self ,  item :  & ' a  ast:: Item ,  function_ident :  Ident )  { 
127127        if  self . in_root  && item. vis . kind . is_pub ( )  { 
128128            self . macros . push ( ProcMacro :: Attr ( ProcMacroDef  { 
129129                id :  item. id , 
130130                span :  item. span , 
131-                 function_name , 
131+                 function_ident , 
132132            } ) ) ; 
133133        }  else  { 
134134            let  msg = if  !self . in_root  { 
@@ -141,12 +141,12 @@ impl<'a> CollectProcMacros<'a> {
141141        } 
142142    } 
143143
144-     fn  collect_bang_proc_macro ( & mut  self ,  item :  & ' a  ast:: Item ,  function_name :  Ident )  { 
144+     fn  collect_bang_proc_macro ( & mut  self ,  item :  & ' a  ast:: Item ,  function_ident :  Ident )  { 
145145        if  self . in_root  && item. vis . kind . is_pub ( )  { 
146146            self . macros . push ( ProcMacro :: Bang ( ProcMacroDef  { 
147147                id :  item. id , 
148148                span :  item. span , 
149-                 function_name , 
149+                 function_ident , 
150150            } ) ) ; 
151151        }  else  { 
152152            let  msg = if  !self . in_root  { 
@@ -303,7 +303,7 @@ fn mk_decls(cx: &mut ExtCtxt<'_>, macros: &[ProcMacro]) -> P<ast::Item> {
303303                ProcMacro :: Derive ( m)  => m. span , 
304304                ProcMacro :: Attr ( m)  | ProcMacro :: Bang ( m)  => m. span , 
305305            } ; 
306-             let  local_path = |cx :  & ExtCtxt < ' _ > ,  name | cx. expr_path ( cx. path ( span,  vec ! [ name ] ) ) ; 
306+             let  local_path = |cx :  & ExtCtxt < ' _ > ,  ident | cx. expr_path ( cx. path ( span,  vec ! [ ident ] ) ) ; 
307307            let  proc_macro_ty_method_path = |cx :  & ExtCtxt < ' _ > ,  method| { 
308308                cx. expr_path ( cx. path ( 
309309                    span. with_ctxt ( harness_span. ctxt ( ) ) , 
@@ -327,7 +327,7 @@ fn mk_decls(cx: &mut ExtCtxt<'_>, macros: &[ProcMacro]) -> P<ast::Item> {
327327                                    . map( |& s| cx. expr_str( span,  s) ) 
328328                                    . collect:: <ThinVec <_>>( ) , 
329329                            ) , 
330-                             local_path( cx,  cd. function_name ) , 
330+                             local_path( cx,  cd. function_ident ) , 
331331                        ] , 
332332                    ) 
333333                } 
@@ -345,8 +345,8 @@ fn mk_decls(cx: &mut ExtCtxt<'_>, macros: &[ProcMacro]) -> P<ast::Item> {
345345                        harness_span, 
346346                        proc_macro_ty_method_path ( cx,  ident) , 
347347                        thin_vec ! [ 
348-                             cx. expr_str( span,  ca. function_name . name) , 
349-                             local_path( cx,  ca. function_name ) , 
348+                             cx. expr_str( span,  ca. function_ident . name) , 
349+                             local_path( cx,  ca. function_ident ) , 
350350                        ] , 
351351                    ) 
352352                } 
0 commit comments