@@ -57,7 +57,7 @@ impl<'hir> Entry<'hir> {
57
57
}
58
58
59
59
Node :: TraitItem ( ref item) => {
60
- match item. node {
60
+ match item. kind {
61
61
TraitItemKind :: Method ( ref method_sig, _) => Some ( & method_sig. decl ) ,
62
62
_ => None
63
63
}
@@ -93,7 +93,7 @@ impl<'hir> Entry<'hir> {
93
93
}
94
94
95
95
Node :: TraitItem ( item) => {
96
- match item. node {
96
+ match item. kind {
97
97
TraitItemKind :: Const ( _, Some ( body) ) |
98
98
TraitItemKind :: Method ( _, TraitMethod :: Provided ( body) ) => Some ( body) ,
99
99
_ => None
@@ -320,7 +320,7 @@ impl<'hir> Map<'hir> {
320
320
}
321
321
}
322
322
Node :: TraitItem ( item) => {
323
- match item. node {
323
+ match item. kind {
324
324
TraitItemKind :: Const ( ..) => DefKind :: AssocConst ,
325
325
TraitItemKind :: Method ( ..) => DefKind :: Method ,
326
326
TraitItemKind :: Type ( ..) => DefKind :: AssocTy ,
@@ -454,14 +454,14 @@ impl<'hir> Map<'hir> {
454
454
pub fn body_owner_kind ( & self , id : HirId ) -> BodyOwnerKind {
455
455
match self . get ( id) {
456
456
Node :: Item ( & Item { node : ItemKind :: Const ( ..) , .. } ) |
457
- Node :: TraitItem ( & TraitItem { node : TraitItemKind :: Const ( ..) , .. } ) |
457
+ Node :: TraitItem ( & TraitItem { kind : TraitItemKind :: Const ( ..) , .. } ) |
458
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
- Node :: TraitItem ( & TraitItem { node : TraitItemKind :: Method ( ..) , .. } ) |
464
+ Node :: TraitItem ( & TraitItem { kind : TraitItemKind :: Method ( ..) , .. } ) |
465
465
Node :: ImplItem ( & ImplItem { kind : ImplItemKind :: Method ( ..) , .. } ) => {
466
466
BodyOwnerKind :: Fn
467
467
}
@@ -653,7 +653,7 @@ impl<'hir> Map<'hir> {
653
653
..
654
654
} )
655
655
| Node :: TraitItem ( & TraitItem {
656
- node : TraitItemKind :: Const ( ..) ,
656
+ kind : TraitItemKind :: Const ( ..) ,
657
657
..
658
658
} )
659
659
| Node :: ImplItem ( & ImplItem {
@@ -826,7 +826,7 @@ impl<'hir> Map<'hir> {
826
826
}
827
827
} ,
828
828
Node :: TraitItem ( ti) => {
829
- match ti. node {
829
+ match ti. kind {
830
830
TraitItemKind :: Method ( ..) => true ,
831
831
_ => false ,
832
832
}
@@ -1326,7 +1326,7 @@ fn hir_id_to_string(map: &Map<'_>, id: HirId, include_id: bool) -> String {
1326
1326
}
1327
1327
}
1328
1328
Some ( Node :: TraitItem ( ti) ) => {
1329
- let kind = match ti. node {
1329
+ let kind = match ti. kind {
1330
1330
TraitItemKind :: Const ( ..) => "assoc constant" ,
1331
1331
TraitItemKind :: Method ( ..) => "trait method" ,
1332
1332
TraitItemKind :: Type ( ..) => "assoc type" ,
0 commit comments