@@ -51,7 +51,7 @@ impl<'hir> Entry<'hir> {
5151            } , 
5252
5353            Node :: TraitItem ( ref  item)  => match  item. kind  { 
54-                 TraitItemKind :: Method ( ref  sig,  _)  => Some ( & sig. decl ) , 
54+                 TraitItemKind :: Fn ( ref  sig,  _)  => Some ( & sig. decl ) , 
5555                _ => None , 
5656            } , 
5757
@@ -77,7 +77,7 @@ impl<'hir> Entry<'hir> {
7777            } , 
7878
7979            Node :: TraitItem ( item)  => match  & item. kind  { 
80-                 TraitItemKind :: Method ( sig,  _)  => Some ( sig) , 
80+                 TraitItemKind :: Fn ( sig,  _)  => Some ( sig) , 
8181                _ => None , 
8282            } , 
8383
@@ -101,7 +101,7 @@ impl<'hir> Entry<'hir> {
101101
102102            Node :: TraitItem ( item)  => match  item. kind  { 
103103                TraitItemKind :: Const ( _,  Some ( body) ) 
104-                 | TraitItemKind :: Method ( _,  TraitMethod :: Provided ( body) )  => Some ( body) , 
104+                 | TraitItemKind :: Fn ( _,  TraitMethod :: Provided ( body) )  => Some ( body) , 
105105                _ => None , 
106106            } , 
107107
@@ -326,12 +326,12 @@ impl<'hir> Map<'hir> {
326326            } , 
327327            Node :: TraitItem ( item)  => match  item. kind  { 
328328                TraitItemKind :: Const ( ..)  => DefKind :: AssocConst , 
329-                 TraitItemKind :: Method ( ..)  => DefKind :: Method , 
329+                 TraitItemKind :: Fn ( ..)  => DefKind :: AssocFn , 
330330                TraitItemKind :: Type ( ..)  => DefKind :: AssocTy , 
331331            } , 
332332            Node :: ImplItem ( item)  => match  item. kind  { 
333333                ImplItemKind :: Const ( ..)  => DefKind :: AssocConst , 
334-                 ImplItemKind :: Method ( ..)  => DefKind :: Method , 
334+                 ImplItemKind :: Method ( ..)  => DefKind :: AssocFn , 
335335                ImplItemKind :: TyAlias ( ..)  => DefKind :: AssocTy , 
336336                ImplItemKind :: OpaqueTy ( ..)  => DefKind :: AssocOpaqueTy , 
337337            } , 
@@ -472,7 +472,7 @@ impl<'hir> Map<'hir> {
472472            | Node :: AnonConst ( _)  => BodyOwnerKind :: Const , 
473473            Node :: Ctor ( ..) 
474474            | Node :: Item ( & Item  {  kind :  ItemKind :: Fn ( ..) ,  .. } ) 
475-             | Node :: TraitItem ( & TraitItem  {  kind :  TraitItemKind :: Method ( ..) ,  .. } ) 
475+             | Node :: TraitItem ( & TraitItem  {  kind :  TraitItemKind :: Fn ( ..) ,  .. } ) 
476476            | Node :: ImplItem ( & ImplItem  {  kind :  ImplItemKind :: Method ( ..) ,  .. } )  => BodyOwnerKind :: Fn , 
477477            Node :: Item ( & Item  {  kind :  ItemKind :: Static ( _,  m,  _) ,  .. } )  => BodyOwnerKind :: Static ( m) , 
478478            Node :: Expr ( & Expr  {  kind :  ExprKind :: Closure ( ..) ,  .. } )  => BodyOwnerKind :: Closure , 
@@ -800,7 +800,7 @@ impl<'hir> Map<'hir> {
800800                    _ => false , 
801801                } , 
802802                Node :: TraitItem ( ti)  => match  ti. kind  { 
803-                     TraitItemKind :: Method ( ..)  => true , 
803+                     TraitItemKind :: Fn ( ..)  => true , 
804804                    _ => false , 
805805                } , 
806806                Node :: ImplItem ( ii)  => match  ii. kind  { 
@@ -1311,7 +1311,7 @@ fn hir_id_to_string(map: &Map<'_>, id: HirId, include_id: bool) -> String {
13111311        Some ( Node :: TraitItem ( ti) )  => { 
13121312            let  kind = match  ti. kind  { 
13131313                TraitItemKind :: Const ( ..)  => "assoc constant" , 
1314-                 TraitItemKind :: Method ( ..)  => "trait method" , 
1314+                 TraitItemKind :: Fn ( ..)  => "trait method" , 
13151315                TraitItemKind :: Type ( ..)  => "assoc type" , 
13161316            } ; 
13171317
0 commit comments