@@ -354,15 +354,15 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) {
354354
355355fn is_relevant_item ( tcx : TyCtxt < ' _ , ' _ , ' _ > , item : & Item ) -> bool {
356356 if let ItemKind :: Fn ( _, _, _, eid) = item. node {
357- is_relevant_expr ( tcx, tcx. body_tables ( eid) , & tcx. hir . body ( eid) . value )
357+ is_relevant_expr ( tcx, tcx. body_tables ( eid) , & tcx. hir ( ) . body ( eid) . value )
358358 } else {
359359 true
360360 }
361361}
362362
363363fn is_relevant_impl ( tcx : TyCtxt < ' _ , ' _ , ' _ > , item : & ImplItem ) -> bool {
364364 match item. node {
365- ImplItemKind :: Method ( _, eid) => is_relevant_expr ( tcx, tcx. body_tables ( eid) , & tcx. hir . body ( eid) . value ) ,
365+ ImplItemKind :: Method ( _, eid) => is_relevant_expr ( tcx, tcx. body_tables ( eid) , & tcx. hir ( ) . body ( eid) . value ) ,
366366 _ => false ,
367367 }
368368}
@@ -371,7 +371,7 @@ fn is_relevant_trait(tcx: TyCtxt<'_, '_, '_>, item: &TraitItem) -> bool {
371371 match item. node {
372372 TraitItemKind :: Method ( _, TraitMethod :: Required ( _) ) => true ,
373373 TraitItemKind :: Method ( _, TraitMethod :: Provided ( eid) ) => {
374- is_relevant_expr ( tcx, tcx. body_tables ( eid) , & tcx. hir . body ( eid) . value )
374+ is_relevant_expr ( tcx, tcx. body_tables ( eid) , & tcx. hir ( ) . body ( eid) . value )
375375 } ,
376376 _ => false ,
377377 }
0 commit comments