@@ -57,7 +57,7 @@ impl<'hir> Entry<'hir> {
5757 }
5858
5959 Node :: TraitItem ( ref item) => {
60- match item. node {
60+ match item. kind {
6161 TraitItemKind :: Method ( ref method_sig, _) => Some ( & method_sig. decl ) ,
6262 _ => None
6363 }
@@ -93,7 +93,7 @@ impl<'hir> Entry<'hir> {
9393 }
9494
9595 Node :: TraitItem ( item) => {
96- match item. node {
96+ match item. kind {
9797 TraitItemKind :: Const ( _, Some ( body) ) |
9898 TraitItemKind :: Method ( _, TraitMethod :: Provided ( body) ) => Some ( body) ,
9999 _ => None
@@ -320,7 +320,7 @@ impl<'hir> Map<'hir> {
320320 }
321321 }
322322 Node :: TraitItem ( item) => {
323- match item. node {
323+ match item. kind {
324324 TraitItemKind :: Const ( ..) => DefKind :: AssocConst ,
325325 TraitItemKind :: Method ( ..) => DefKind :: Method ,
326326 TraitItemKind :: Type ( ..) => DefKind :: AssocTy ,
@@ -454,14 +454,14 @@ impl<'hir> Map<'hir> {
454454 pub fn body_owner_kind ( & self , id : HirId ) -> BodyOwnerKind {
455455 match self . get ( id) {
456456 Node :: Item ( & Item { node : ItemKind :: Const ( ..) , .. } ) |
457- Node :: TraitItem ( & TraitItem { node : TraitItemKind :: Const ( ..) , .. } ) |
457+ Node :: TraitItem ( & TraitItem { kind : TraitItemKind :: Const ( ..) , .. } ) |
458458 Node :: ImplItem ( & ImplItem { kind : ImplItemKind :: Const ( ..) , .. } ) |
459459 Node :: AnonConst ( _) => {
460460 BodyOwnerKind :: Const
461461 }
462462 Node :: Ctor ( ..) |
463463 Node :: Item ( & Item { node : ItemKind :: Fn ( ..) , .. } ) |
464- Node :: TraitItem ( & TraitItem { node : TraitItemKind :: Method ( ..) , .. } ) |
464+ Node :: TraitItem ( & TraitItem { kind : TraitItemKind :: Method ( ..) , .. } ) |
465465 Node :: ImplItem ( & ImplItem { kind : ImplItemKind :: Method ( ..) , .. } ) => {
466466 BodyOwnerKind :: Fn
467467 }
@@ -653,7 +653,7 @@ impl<'hir> Map<'hir> {
653653 ..
654654 } )
655655 | Node :: TraitItem ( & TraitItem {
656- node : TraitItemKind :: Const ( ..) ,
656+ kind : TraitItemKind :: Const ( ..) ,
657657 ..
658658 } )
659659 | Node :: ImplItem ( & ImplItem {
@@ -826,7 +826,7 @@ impl<'hir> Map<'hir> {
826826 }
827827 } ,
828828 Node :: TraitItem ( ti) => {
829- match ti. node {
829+ match ti. kind {
830830 TraitItemKind :: Method ( ..) => true ,
831831 _ => false ,
832832 }
@@ -1326,7 +1326,7 @@ fn hir_id_to_string(map: &Map<'_>, id: HirId, include_id: bool) -> String {
13261326 }
13271327 }
13281328 Some ( Node :: TraitItem ( ti) ) => {
1329- let kind = match ti. node {
1329+ let kind = match ti. kind {
13301330 TraitItemKind :: Const ( ..) => "assoc constant" ,
13311331 TraitItemKind :: Method ( ..) => "trait method" ,
13321332 TraitItemKind :: Type ( ..) => "assoc type" ,
0 commit comments