@@ -51,7 +51,7 @@ impl<'hir> Entry<'hir> {
51
51
} ,
52
52
53
53
Node :: TraitItem ( ref item) => match item. kind {
54
- TraitItemKind :: Method ( ref sig, _) => Some ( & sig. decl ) ,
54
+ TraitItemKind :: Fn ( ref sig, _) => Some ( & sig. decl ) ,
55
55
_ => None ,
56
56
} ,
57
57
@@ -77,7 +77,7 @@ impl<'hir> Entry<'hir> {
77
77
} ,
78
78
79
79
Node :: TraitItem ( item) => match & item. kind {
80
- TraitItemKind :: Method ( sig, _) => Some ( sig) ,
80
+ TraitItemKind :: Fn ( sig, _) => Some ( sig) ,
81
81
_ => None ,
82
82
} ,
83
83
@@ -101,7 +101,7 @@ impl<'hir> Entry<'hir> {
101
101
102
102
Node :: TraitItem ( item) => match item. kind {
103
103
TraitItemKind :: Const ( _, Some ( body) )
104
- | TraitItemKind :: Method ( _, TraitMethod :: Provided ( body) ) => Some ( body) ,
104
+ | TraitItemKind :: Fn ( _, TraitMethod :: Provided ( body) ) => Some ( body) ,
105
105
_ => None ,
106
106
} ,
107
107
@@ -326,12 +326,12 @@ impl<'hir> Map<'hir> {
326
326
} ,
327
327
Node :: TraitItem ( item) => match item. kind {
328
328
TraitItemKind :: Const ( ..) => DefKind :: AssocConst ,
329
- TraitItemKind :: Method ( ..) => DefKind :: Method ,
329
+ TraitItemKind :: Fn ( ..) => DefKind :: AssocFn ,
330
330
TraitItemKind :: Type ( ..) => DefKind :: AssocTy ,
331
331
} ,
332
332
Node :: ImplItem ( item) => match item. kind {
333
333
ImplItemKind :: Const ( ..) => DefKind :: AssocConst ,
334
- ImplItemKind :: Method ( ..) => DefKind :: Method ,
334
+ ImplItemKind :: Method ( ..) => DefKind :: AssocFn ,
335
335
ImplItemKind :: TyAlias ( ..) => DefKind :: AssocTy ,
336
336
ImplItemKind :: OpaqueTy ( ..) => DefKind :: AssocOpaqueTy ,
337
337
} ,
@@ -472,7 +472,7 @@ impl<'hir> Map<'hir> {
472
472
| Node :: AnonConst ( _) => BodyOwnerKind :: Const ,
473
473
Node :: Ctor ( ..)
474
474
| Node :: Item ( & Item { kind : ItemKind :: Fn ( ..) , .. } )
475
- | Node :: TraitItem ( & TraitItem { kind : TraitItemKind :: Method ( ..) , .. } )
475
+ | Node :: TraitItem ( & TraitItem { kind : TraitItemKind :: Fn ( ..) , .. } )
476
476
| Node :: ImplItem ( & ImplItem { kind : ImplItemKind :: Method ( ..) , .. } ) => BodyOwnerKind :: Fn ,
477
477
Node :: Item ( & Item { kind : ItemKind :: Static ( _, m, _) , .. } ) => BodyOwnerKind :: Static ( m) ,
478
478
Node :: Expr ( & Expr { kind : ExprKind :: Closure ( ..) , .. } ) => BodyOwnerKind :: Closure ,
@@ -800,7 +800,7 @@ impl<'hir> Map<'hir> {
800
800
_ => false ,
801
801
} ,
802
802
Node :: TraitItem ( ti) => match ti. kind {
803
- TraitItemKind :: Method ( ..) => true ,
803
+ TraitItemKind :: Fn ( ..) => true ,
804
804
_ => false ,
805
805
} ,
806
806
Node :: ImplItem ( ii) => match ii. kind {
@@ -1311,7 +1311,7 @@ fn hir_id_to_string(map: &Map<'_>, id: HirId, include_id: bool) -> String {
1311
1311
Some ( Node :: TraitItem ( ti) ) => {
1312
1312
let kind = match ti. kind {
1313
1313
TraitItemKind :: Const ( ..) => "assoc constant" ,
1314
- TraitItemKind :: Method ( ..) => "trait method" ,
1314
+ TraitItemKind :: Fn ( ..) => "trait method" ,
1315
1315
TraitItemKind :: Type ( ..) => "assoc type" ,
1316
1316
} ;
1317
1317
0 commit comments