@@ -56,7 +56,7 @@ impl<'hir> Entry<'hir> {
5656 } ,
5757
5858 Node :: ImplItem ( ref item) => match item. kind {
59- ImplItemKind :: Method ( ref sig, _) => Some ( & sig. decl ) ,
59+ ImplItemKind :: Fn ( ref sig, _) => Some ( & sig. decl ) ,
6060 _ => None ,
6161 } ,
6262
@@ -82,7 +82,7 @@ impl<'hir> Entry<'hir> {
8282 } ,
8383
8484 Node :: ImplItem ( item) => match & item. kind {
85- ImplItemKind :: Method ( sig, _) => Some ( sig) ,
85+ ImplItemKind :: Fn ( sig, _) => Some ( sig) ,
8686 _ => None ,
8787 } ,
8888
@@ -101,12 +101,12 @@ impl<'hir> Entry<'hir> {
101101
102102 Node :: TraitItem ( item) => match item. kind {
103103 TraitItemKind :: Const ( _, Some ( body) )
104- | TraitItemKind :: Fn ( _, TraitMethod :: Provided ( body) ) => Some ( body) ,
104+ | TraitItemKind :: Fn ( _, TraitFn :: Provided ( body) ) => Some ( body) ,
105105 _ => None ,
106106 } ,
107107
108108 Node :: ImplItem ( item) => match item. kind {
109- ImplItemKind :: Const ( _, body) | ImplItemKind :: Method ( _, body) => Some ( body) ,
109+ ImplItemKind :: Const ( _, body) | ImplItemKind :: Fn ( _, body) => Some ( body) ,
110110 _ => None ,
111111 } ,
112112
@@ -331,7 +331,7 @@ impl<'hir> Map<'hir> {
331331 } ,
332332 Node :: ImplItem ( item) => match item. kind {
333333 ImplItemKind :: Const ( ..) => DefKind :: AssocConst ,
334- ImplItemKind :: Method ( ..) => DefKind :: AssocFn ,
334+ ImplItemKind :: Fn ( ..) => DefKind :: AssocFn ,
335335 ImplItemKind :: TyAlias ( ..) => DefKind :: AssocTy ,
336336 ImplItemKind :: OpaqueTy ( ..) => DefKind :: AssocOpaqueTy ,
337337 } ,
@@ -473,7 +473,7 @@ impl<'hir> Map<'hir> {
473473 Node :: Ctor ( ..)
474474 | Node :: Item ( & Item { kind : ItemKind :: Fn ( ..) , .. } )
475475 | Node :: TraitItem ( & TraitItem { kind : TraitItemKind :: Fn ( ..) , .. } )
476- | Node :: ImplItem ( & ImplItem { kind : ImplItemKind :: Method ( ..) , .. } ) => BodyOwnerKind :: Fn ,
476+ | Node :: ImplItem ( & ImplItem { kind : ImplItemKind :: Fn ( ..) , .. } ) => BodyOwnerKind :: Fn ,
477477 Node :: Item ( & Item { kind : ItemKind :: Static ( _, m, _) , .. } ) => BodyOwnerKind :: Static ( m) ,
478478 Node :: Expr ( & Expr { kind : ExprKind :: Closure ( ..) , .. } ) => BodyOwnerKind :: Closure ,
479479 node => bug ! ( "{:#?} is not a body node" , node) ,
@@ -804,7 +804,7 @@ impl<'hir> Map<'hir> {
804804 _ => false ,
805805 } ,
806806 Node :: ImplItem ( ii) => match ii. kind {
807- ImplItemKind :: Method ( ..) => true ,
807+ ImplItemKind :: Fn ( ..) => true ,
808808 _ => false ,
809809 } ,
810810 Node :: Block ( _) => true ,
@@ -1300,7 +1300,7 @@ fn hir_id_to_string(map: &Map<'_>, id: HirId, include_id: bool) -> String {
13001300 ImplItemKind :: Const ( ..) => {
13011301 format ! ( "assoc const {} in {}{}" , ii. ident, path_str( ) , id_str)
13021302 }
1303- ImplItemKind :: Method ( ..) => format ! ( "method {} in {}{}" , ii. ident, path_str( ) , id_str) ,
1303+ ImplItemKind :: Fn ( ..) => format ! ( "method {} in {}{}" , ii. ident, path_str( ) , id_str) ,
13041304 ImplItemKind :: TyAlias ( _) => {
13051305 format ! ( "assoc type {} in {}{}" , ii. ident, path_str( ) , id_str)
13061306 }
0 commit comments