@@ -187,7 +187,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Functions {
187
187
& mut self ,
188
188
cx : & LateContext < ' a , ' tcx > ,
189
189
kind : intravisit:: FnKind < ' tcx > ,
190
- decl : & ' tcx hir:: FnDecl ,
190
+ decl : & ' tcx hir:: FnDecl < ' _ > ,
191
191
body : & ' tcx hir:: Body < ' _ > ,
192
192
span : Span ,
193
193
hir_id : hir:: HirId ,
@@ -306,7 +306,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Functions {
306
306
}
307
307
308
308
impl < ' 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 ) {
310
310
let args = decl. inputs . len ( ) as u64 ;
311
311
if args > self . threshold {
312
312
span_lint (
@@ -375,7 +375,7 @@ impl<'a, 'tcx> Functions {
375
375
fn check_raw_ptr (
376
376
cx : & LateContext < ' a , ' tcx > ,
377
377
unsafety : hir:: Unsafety ,
378
- decl : & ' tcx hir:: FnDecl ,
378
+ decl : & ' tcx hir:: FnDecl < ' _ > ,
379
379
body : & ' tcx hir:: Body < ' _ > ,
380
380
hir_id : hir:: HirId ,
381
381
) {
@@ -402,7 +402,7 @@ impl<'a, 'tcx> Functions {
402
402
403
403
fn check_needless_must_use (
404
404
cx : & LateContext < ' _ , ' _ > ,
405
- decl : & hir:: FnDecl ,
405
+ decl : & hir:: FnDecl < ' _ > ,
406
406
item_id : hir:: HirId ,
407
407
item_span : Span ,
408
408
fn_header_span : Span ,
@@ -439,7 +439,7 @@ fn check_needless_must_use(
439
439
440
440
fn check_must_use_candidate < ' a , ' tcx > (
441
441
cx : & LateContext < ' a , ' tcx > ,
442
- decl : & ' tcx hir:: FnDecl ,
442
+ decl : & ' tcx hir:: FnDecl < ' _ > ,
443
443
body : & ' tcx hir:: Body < ' _ > ,
444
444
item_span : Span ,
445
445
item_id : hir:: HirId ,
@@ -467,7 +467,7 @@ fn check_must_use_candidate<'a, 'tcx>(
467
467
} ) ;
468
468
}
469
469
470
- fn returns_unit ( decl : & hir:: FnDecl ) -> bool {
470
+ fn returns_unit ( decl : & hir:: FnDecl < ' _ > ) -> bool {
471
471
match decl. output {
472
472
hir:: FunctionRetTy :: DefaultReturn ( _) => true ,
473
473
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,
518
518
}
519
519
}
520
520
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 > {
522
522
if let ( & hir:: PatKind :: Binding ( _, id, _, _) , & hir:: TyKind :: Ptr ( _) ) = ( & arg. pat . kind , & ty. kind ) {
523
523
Some ( id)
524
524
} else {
0 commit comments