@@ -188,7 +188,7 @@ impl<'tcx> LateLintPass<'tcx> for Ptr {
188
188
}
189
189
}
190
190
191
- fn check_body ( & mut self , cx : & LateContext < ' tcx > , body : & ' tcx Body < ' _ > ) {
191
+ fn check_body ( & mut self , cx : & LateContext < ' tcx > , body : & Body < ' tcx > ) {
192
192
let hir = cx. tcx . hir ( ) ;
193
193
let mut parents = hir. parent_iter ( body. value . hir_id ) ;
194
194
let ( item_id, sig, is_trait_item) = match parents. next ( ) {
@@ -525,7 +525,7 @@ fn check_fn_args<'cx, 'tcx: 'cx>(
525
525
} )
526
526
}
527
527
528
- fn check_mut_from_ref < ' tcx > ( cx : & LateContext < ' tcx > , sig : & FnSig < ' _ > , body : Option < & ' tcx Body < ' _ > > ) {
528
+ fn check_mut_from_ref < ' tcx > ( cx : & LateContext < ' tcx > , sig : & FnSig < ' _ > , body : Option < & Body < ' tcx > > ) {
529
529
if let FnRetTy :: Return ( ty) = sig. decl . output
530
530
&& let Some ( ( out, Mutability :: Mut , _) ) = get_ref_lm ( ty)
531
531
{
@@ -559,7 +559,7 @@ fn check_mut_from_ref<'tcx>(cx: &LateContext<'tcx>, sig: &FnSig<'_>, body: Optio
559
559
}
560
560
561
561
#[ expect( clippy:: too_many_lines) ]
562
- fn check_ptr_arg_usage < ' tcx > ( cx : & LateContext < ' tcx > , body : & ' tcx Body < ' _ > , args : & [ PtrArg < ' tcx > ] ) -> Vec < PtrArgResult > {
562
+ fn check_ptr_arg_usage < ' tcx > ( cx : & LateContext < ' tcx > , body : & Body < ' tcx > , args : & [ PtrArg < ' tcx > ] ) -> Vec < PtrArgResult > {
563
563
struct V < ' cx , ' tcx > {
564
564
cx : & ' cx LateContext < ' tcx > ,
565
565
/// Map from a local id to which argument it came from (index into `Self::args` and
0 commit comments