@@ -188,7 +188,7 @@ impl<'tcx> LateLintPass<'tcx> for Ptr {
188188 }
189189 }
190190
191- fn check_body ( & mut self , cx : & LateContext < ' tcx > , body : & ' tcx Body < ' _ > ) {
191+ fn check_body ( & mut self , cx : & LateContext < ' tcx > , body : & Body < ' tcx > ) {
192192 let hir = cx. tcx . hir ( ) ;
193193 let mut parents = hir. parent_iter ( body. value . hir_id ) ;
194194 let ( item_id, sig, is_trait_item) = match parents. next ( ) {
@@ -525,7 +525,7 @@ fn check_fn_args<'cx, 'tcx: 'cx>(
525525 } )
526526}
527527
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 > > ) {
529529 if let FnRetTy :: Return ( ty) = sig. decl . output
530530 && let Some ( ( out, Mutability :: Mut , _) ) = get_ref_lm ( ty)
531531 {
@@ -559,7 +559,7 @@ fn check_mut_from_ref<'tcx>(cx: &LateContext<'tcx>, sig: &FnSig<'_>, body: Optio
559559}
560560
561561#[ 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 > {
563563 struct V < ' cx , ' tcx > {
564564 cx : & ' cx LateContext < ' tcx > ,
565565 /// Map from a local id to which argument it came from (index into `Self::args` and
0 commit comments