@@ -446,7 +446,7 @@ fn try_parse_ref_op<'tcx>(
446
446
447
447
// Checks whether the type for a deref call actually changed the type, not just the mutability of
448
448
// 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 {
450
450
match ( result_ty. kind ( ) , arg_ty. kind ( ) ) {
451
451
( ty:: Ref ( _, result_ty, _) , ty:: Ref ( _, arg_ty, _) ) => result_ty == arg_ty,
452
452
@@ -541,8 +541,8 @@ fn is_auto_borrow_position(parent: Option<Node<'_>>, child_id: HirId) -> bool {
541
541
/// Adjustments are sometimes made in the parent block rather than the expression itself.
542
542
fn find_adjustments < ' tcx > (
543
543
tcx : TyCtxt < ' tcx > ,
544
- typeck : & ' tcx TypeckResults < ' _ > ,
545
- expr : & ' tcx Expr < ' _ > ,
544
+ typeck : & ' tcx TypeckResults < ' tcx > ,
545
+ expr : & ' tcx Expr < ' tcx > ,
546
546
) -> & ' tcx [ Adjustment < ' tcx > ] {
547
547
let map = tcx. hir ( ) ;
548
548
let mut iter = map. parent_iter ( expr. hir_id ) ;
@@ -581,7 +581,7 @@ fn find_adjustments<'tcx>(
581
581
}
582
582
583
583
#[ 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 ) {
585
585
match state {
586
586
State :: DerefMethod {
587
587
ty_changed_count,
@@ -656,7 +656,7 @@ fn report(cx: &LateContext<'_>, expr: &Expr<'_>, state: State, data: StateData)
656
656
}
657
657
658
658
impl 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 ) {
660
660
if let Some ( outer_pat) = self . ref_locals . get_mut ( & local) {
661
661
if let Some ( pat) = outer_pat {
662
662
// Check for auto-deref
0 commit comments