@@ -64,7 +64,7 @@ impl<'hir> Entry<'hir> {
6464 }
6565
6666 Node :: ImplItem ( ref item) => {
67- match item. node {
67+ match item. kind {
6868 ImplItemKind :: Method ( ref method_sig, _) => Some ( & method_sig. decl ) ,
6969 _ => None ,
7070 }
@@ -101,7 +101,7 @@ impl<'hir> Entry<'hir> {
101101 }
102102
103103 Node :: ImplItem ( item) => {
104- match item. node {
104+ match item. kind {
105105 ImplItemKind :: Const ( _, body) |
106106 ImplItemKind :: Method ( _, body) => Some ( body) ,
107107 _ => None ,
@@ -327,7 +327,7 @@ impl<'hir> Map<'hir> {
327327 }
328328 }
329329 Node :: ImplItem ( item) => {
330- match item. node {
330+ match item. kind {
331331 ImplItemKind :: Const ( ..) => DefKind :: AssocConst ,
332332 ImplItemKind :: Method ( ..) => DefKind :: Method ,
333333 ImplItemKind :: TyAlias ( ..) => DefKind :: AssocTy ,
@@ -455,14 +455,14 @@ impl<'hir> Map<'hir> {
455455 match self . get ( id) {
456456 Node :: Item ( & Item { node : ItemKind :: Const ( ..) , .. } ) |
457457 Node :: TraitItem ( & TraitItem { node : TraitItemKind :: Const ( ..) , .. } ) |
458- Node :: ImplItem ( & ImplItem { node : ImplItemKind :: Const ( ..) , .. } ) |
458+ Node :: ImplItem ( & ImplItem { kind : ImplItemKind :: Const ( ..) , .. } ) |
459459 Node :: AnonConst ( _) => {
460460 BodyOwnerKind :: Const
461461 }
462462 Node :: Ctor ( ..) |
463463 Node :: Item ( & Item { node : ItemKind :: Fn ( ..) , .. } ) |
464464 Node :: TraitItem ( & TraitItem { node : TraitItemKind :: Method ( ..) , .. } ) |
465- Node :: ImplItem ( & ImplItem { node : ImplItemKind :: Method ( ..) , .. } ) => {
465+ Node :: ImplItem ( & ImplItem { kind : ImplItemKind :: Method ( ..) , .. } ) => {
466466 BodyOwnerKind :: Fn
467467 }
468468 Node :: Item ( & Item { node : ItemKind :: Static ( _, m, _) , .. } ) => {
@@ -657,7 +657,7 @@ impl<'hir> Map<'hir> {
657657 ..
658658 } )
659659 | Node :: ImplItem ( & ImplItem {
660- node : ImplItemKind :: Const ( ..) ,
660+ kind : ImplItemKind :: Const ( ..) ,
661661 ..
662662 } )
663663 | Node :: AnonConst ( _)
@@ -832,7 +832,7 @@ impl<'hir> Map<'hir> {
832832 }
833833 } ,
834834 Node :: ImplItem ( ii) => {
835- match ii. node {
835+ match ii. kind {
836836 ImplItemKind :: Method ( ..) => true ,
837837 _ => false ,
838838 }
@@ -1310,7 +1310,7 @@ fn hir_id_to_string(map: &Map<'_>, id: HirId, include_id: bool) -> String {
13101310 format ! ( "foreign item {}{}" , path_str( ) , id_str)
13111311 }
13121312 Some ( Node :: ImplItem ( ii) ) => {
1313- match ii. node {
1313+ match ii. kind {
13141314 ImplItemKind :: Const ( ..) => {
13151315 format ! ( "assoc const {} in {}{}" , ii. ident, path_str( ) , id_str)
13161316 }
0 commit comments