@@ -354,15 +354,15 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) {
354
354
355
355
fn is_relevant_item ( tcx : TyCtxt < ' _ , ' _ , ' _ > , item : & Item ) -> bool {
356
356
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 )
358
358
} else {
359
359
true
360
360
}
361
361
}
362
362
363
363
fn is_relevant_impl ( tcx : TyCtxt < ' _ , ' _ , ' _ > , item : & ImplItem ) -> bool {
364
364
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 ) ,
366
366
_ => false ,
367
367
}
368
368
}
@@ -371,7 +371,7 @@ fn is_relevant_trait(tcx: TyCtxt<'_, '_, '_>, item: &TraitItem) -> bool {
371
371
match item. node {
372
372
TraitItemKind :: Method ( _, TraitMethod :: Required ( _) ) => true ,
373
373
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 )
375
375
} ,
376
376
_ => false ,
377
377
}
0 commit comments