@@ -446,7 +446,7 @@ fn try_parse_ref_op<'tcx>(
446446
447447// Checks whether the type for a deref call actually changed the type, not just the mutability of
448448// the reference.
449- fn deref_method_same_type ( result_ty : Ty < ' _ > , arg_ty : Ty < ' _ > ) -> bool {
449+ fn deref_method_same_type < ' tcx > ( result_ty : Ty < ' tcx > , arg_ty : Ty < ' tcx > ) -> bool {
450450 match ( result_ty. kind ( ) , arg_ty. kind ( ) ) {
451451 ( ty:: Ref ( _, result_ty, _) , ty:: Ref ( _, arg_ty, _) ) => result_ty == arg_ty,
452452
@@ -541,8 +541,8 @@ fn is_auto_borrow_position(parent: Option<Node<'_>>, child_id: HirId) -> bool {
541541/// Adjustments are sometimes made in the parent block rather than the expression itself.
542542fn find_adjustments < ' tcx > (
543543 tcx : TyCtxt < ' tcx > ,
544- typeck : & ' tcx TypeckResults < ' _ > ,
545- expr : & ' tcx Expr < ' _ > ,
544+ typeck : & ' tcx TypeckResults < ' tcx > ,
545+ expr : & ' tcx Expr < ' tcx > ,
546546) -> & ' tcx [ Adjustment < ' tcx > ] {
547547 let map = tcx. hir ( ) ;
548548 let mut iter = map. parent_iter ( expr. hir_id ) ;
@@ -581,7 +581,7 @@ fn find_adjustments<'tcx>(
581581}
582582
583583#[ expect( clippy:: needless_pass_by_value) ]
584- fn report ( cx : & LateContext < ' _ > , expr : & Expr < ' _ > , state : State , data : StateData ) {
584+ fn report < ' tcx > ( cx : & LateContext < ' tcx > , expr : & Expr < ' tcx > , state : State , data : StateData ) {
585585 match state {
586586 State :: DerefMethod {
587587 ty_changed_count,
@@ -656,7 +656,7 @@ fn report(cx: &LateContext<'_>, expr: &Expr<'_>, state: State, data: StateData)
656656}
657657
658658impl Dereferencing {
659- fn check_local_usage ( & mut self , cx : & LateContext < ' _ > , e : & Expr < ' _ > , local : HirId ) {
659+ fn check_local_usage < ' tcx > ( & mut self , cx : & LateContext < ' tcx > , e : & Expr < ' tcx > , local : HirId ) {
660660 if let Some ( outer_pat) = self . ref_locals . get_mut ( & local) {
661661 if let Some ( pat) = outer_pat {
662662 // Check for auto-deref
0 commit comments