@@ -64,7 +64,7 @@ impl<'hir> Entry<'hir> {
64
64
}
65
65
66
66
Node :: ImplItem ( ref item) => {
67
- match item. node {
67
+ match item. kind {
68
68
ImplItemKind :: Method ( ref method_sig, _) => Some ( & method_sig. decl ) ,
69
69
_ => None ,
70
70
}
@@ -101,7 +101,7 @@ impl<'hir> Entry<'hir> {
101
101
}
102
102
103
103
Node :: ImplItem ( item) => {
104
- match item. node {
104
+ match item. kind {
105
105
ImplItemKind :: Const ( _, body) |
106
106
ImplItemKind :: Method ( _, body) => Some ( body) ,
107
107
_ => None ,
@@ -327,7 +327,7 @@ impl<'hir> Map<'hir> {
327
327
}
328
328
}
329
329
Node :: ImplItem ( item) => {
330
- match item. node {
330
+ match item. kind {
331
331
ImplItemKind :: Const ( ..) => DefKind :: AssocConst ,
332
332
ImplItemKind :: Method ( ..) => DefKind :: Method ,
333
333
ImplItemKind :: TyAlias ( ..) => DefKind :: AssocTy ,
@@ -455,14 +455,14 @@ impl<'hir> Map<'hir> {
455
455
match self . get ( id) {
456
456
Node :: Item ( & Item { node : ItemKind :: Const ( ..) , .. } ) |
457
457
Node :: TraitItem ( & TraitItem { node : TraitItemKind :: Const ( ..) , .. } ) |
458
- Node :: ImplItem ( & ImplItem { node : ImplItemKind :: Const ( ..) , .. } ) |
458
+ Node :: ImplItem ( & ImplItem { kind : ImplItemKind :: Const ( ..) , .. } ) |
459
459
Node :: AnonConst ( _) => {
460
460
BodyOwnerKind :: Const
461
461
}
462
462
Node :: Ctor ( ..) |
463
463
Node :: Item ( & Item { node : ItemKind :: Fn ( ..) , .. } ) |
464
464
Node :: TraitItem ( & TraitItem { node : TraitItemKind :: Method ( ..) , .. } ) |
465
- Node :: ImplItem ( & ImplItem { node : ImplItemKind :: Method ( ..) , .. } ) => {
465
+ Node :: ImplItem ( & ImplItem { kind : ImplItemKind :: Method ( ..) , .. } ) => {
466
466
BodyOwnerKind :: Fn
467
467
}
468
468
Node :: Item ( & Item { node : ItemKind :: Static ( _, m, _) , .. } ) => {
@@ -657,7 +657,7 @@ impl<'hir> Map<'hir> {
657
657
..
658
658
} )
659
659
| Node :: ImplItem ( & ImplItem {
660
- node : ImplItemKind :: Const ( ..) ,
660
+ kind : ImplItemKind :: Const ( ..) ,
661
661
..
662
662
} )
663
663
| Node :: AnonConst ( _)
@@ -832,7 +832,7 @@ impl<'hir> Map<'hir> {
832
832
}
833
833
} ,
834
834
Node :: ImplItem ( ii) => {
835
- match ii. node {
835
+ match ii. kind {
836
836
ImplItemKind :: Method ( ..) => true ,
837
837
_ => false ,
838
838
}
@@ -1310,7 +1310,7 @@ fn hir_id_to_string(map: &Map<'_>, id: HirId, include_id: bool) -> String {
1310
1310
format ! ( "foreign item {}{}" , path_str( ) , id_str)
1311
1311
}
1312
1312
Some ( Node :: ImplItem ( ii) ) => {
1313
- match ii. node {
1313
+ match ii. kind {
1314
1314
ImplItemKind :: Const ( ..) => {
1315
1315
format ! ( "assoc const {} in {}{}" , ii. ident, path_str( ) , id_str)
1316
1316
}
0 commit comments