@@ -224,7 +224,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Attributes {
224224 }
225225 }
226226
227- fn check_item ( & mut self , cx : & LateContext < ' a , ' tcx > , item : & ' tcx Item ) {
227+ fn check_item ( & mut self , cx : & LateContext < ' a , ' tcx > , item : & ' tcx Item < ' _ > ) {
228228 if is_relevant_item ( cx, item) {
229229 check_attrs ( cx, item. span , item. ident . name , & item. attrs )
230230 }
@@ -295,13 +295,13 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Attributes {
295295 }
296296 }
297297
298- fn check_impl_item ( & mut self , cx : & LateContext < ' a , ' tcx > , item : & ' tcx ImplItem ) {
298+ fn check_impl_item ( & mut self , cx : & LateContext < ' a , ' tcx > , item : & ' tcx ImplItem < ' _ > ) {
299299 if is_relevant_impl ( cx, item) {
300300 check_attrs ( cx, item. span , item. ident . name , & item. attrs )
301301 }
302302 }
303303
304- fn check_trait_item ( & mut self , cx : & LateContext < ' a , ' tcx > , item : & ' tcx TraitItem ) {
304+ fn check_trait_item ( & mut self , cx : & LateContext < ' a , ' tcx > , item : & ' tcx TraitItem < ' _ > ) {
305305 if is_relevant_trait ( cx, item) {
306306 check_attrs ( cx, item. span , item. ident . name , & item. attrs )
307307 }
@@ -355,22 +355,22 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) {
355355 }
356356}
357357
358- fn is_relevant_item ( cx : & LateContext < ' _ , ' _ > , item : & Item ) -> bool {
358+ fn is_relevant_item ( cx : & LateContext < ' _ , ' _ > , item : & Item < ' _ > ) -> bool {
359359 if let ItemKind :: Fn ( _, _, eid) = item. kind {
360360 is_relevant_expr ( cx, cx. tcx . body_tables ( eid) , & cx. tcx . hir ( ) . body ( eid) . value )
361361 } else {
362362 true
363363 }
364364}
365365
366- fn is_relevant_impl ( cx : & LateContext < ' _ , ' _ > , item : & ImplItem ) -> bool {
366+ fn is_relevant_impl ( cx : & LateContext < ' _ , ' _ > , item : & ImplItem < ' _ > ) -> bool {
367367 match item. kind {
368368 ImplItemKind :: Method ( _, eid) => is_relevant_expr ( cx, cx. tcx . body_tables ( eid) , & cx. tcx . hir ( ) . body ( eid) . value ) ,
369369 _ => false ,
370370 }
371371}
372372
373- fn is_relevant_trait ( cx : & LateContext < ' _ , ' _ > , item : & TraitItem ) -> bool {
373+ fn is_relevant_trait ( cx : & LateContext < ' _ , ' _ > , item : & TraitItem < ' _ > ) -> bool {
374374 match item. kind {
375375 TraitItemKind :: Method ( _, TraitMethod :: Required ( _) ) => true ,
376376 TraitItemKind :: Method ( _, TraitMethod :: Provided ( eid) ) => {
0 commit comments