@@ -187,7 +187,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Functions {
187187 & mut self ,
188188 cx : & LateContext < ' a , ' tcx > ,
189189 kind : intravisit:: FnKind < ' tcx > ,
190- decl : & ' tcx hir:: FnDecl ,
190+ decl : & ' tcx hir:: FnDecl < ' _ > ,
191191 body : & ' tcx hir:: Body < ' _ > ,
192192 span : Span ,
193193 hir_id : hir:: HirId ,
@@ -306,7 +306,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Functions {
306306}
307307
308308impl < ' a , ' tcx > Functions {
309- fn check_arg_number ( self , cx : & LateContext < ' _ , ' _ > , decl : & hir:: FnDecl , fn_span : Span ) {
309+ fn check_arg_number ( self , cx : & LateContext < ' _ , ' _ > , decl : & hir:: FnDecl < ' _ > , fn_span : Span ) {
310310 let args = decl. inputs . len ( ) as u64 ;
311311 if args > self . threshold {
312312 span_lint (
@@ -375,7 +375,7 @@ impl<'a, 'tcx> Functions {
375375 fn check_raw_ptr (
376376 cx : & LateContext < ' a , ' tcx > ,
377377 unsafety : hir:: Unsafety ,
378- decl : & ' tcx hir:: FnDecl ,
378+ decl : & ' tcx hir:: FnDecl < ' _ > ,
379379 body : & ' tcx hir:: Body < ' _ > ,
380380 hir_id : hir:: HirId ,
381381 ) {
@@ -402,7 +402,7 @@ impl<'a, 'tcx> Functions {
402402
403403fn check_needless_must_use (
404404 cx : & LateContext < ' _ , ' _ > ,
405- decl : & hir:: FnDecl ,
405+ decl : & hir:: FnDecl < ' _ > ,
406406 item_id : hir:: HirId ,
407407 item_span : Span ,
408408 fn_header_span : Span ,
@@ -439,7 +439,7 @@ fn check_needless_must_use(
439439
440440fn check_must_use_candidate < ' a , ' tcx > (
441441 cx : & LateContext < ' a , ' tcx > ,
442- decl : & ' tcx hir:: FnDecl ,
442+ decl : & ' tcx hir:: FnDecl < ' _ > ,
443443 body : & ' tcx hir:: Body < ' _ > ,
444444 item_span : Span ,
445445 item_id : hir:: HirId ,
@@ -467,7 +467,7 @@ fn check_must_use_candidate<'a, 'tcx>(
467467 } ) ;
468468}
469469
470- fn returns_unit ( decl : & hir:: FnDecl ) -> bool {
470+ fn returns_unit ( decl : & hir:: FnDecl < ' _ > ) -> bool {
471471 match decl. output {
472472 hir:: FunctionRetTy :: DefaultReturn ( _) => true ,
473473 hir:: FunctionRetTy :: Return ( ref ty) => match ty. kind {
@@ -518,7 +518,7 @@ fn is_mutable_ty<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, ty: Ty<'tcx>, span: Span,
518518 }
519519}
520520
521- fn raw_ptr_arg ( arg : & hir:: Param < ' _ > , ty : & hir:: Ty ) -> Option < hir:: HirId > {
521+ fn raw_ptr_arg ( arg : & hir:: Param < ' _ > , ty : & hir:: Ty < ' _ > ) -> Option < hir:: HirId > {
522522 if let ( & hir:: PatKind :: Binding ( _, id, _, _) , & hir:: TyKind :: Ptr ( _) ) = ( & arg. pat . kind , & ty. kind ) {
523523 Some ( id)
524524 } else {
0 commit comments