Skip to content

Commit

Permalink
Replace Deref bounds on Interner in favor of a SliceLike trait
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Jun 24, 2024
1 parent a155c38 commit 8998ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/needless_borrows_for_generic_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ fn needless_borrow_count<'tcx>(
return false;
}

let predicate = EarlyBinder::bind(predicate).instantiate(cx.tcx, &args_with_referent_ty);
let predicate = EarlyBinder::bind(predicate).instantiate(cx.tcx, &args_with_referent_ty[..]);
let obligation = Obligation::new(cx.tcx, ObligationCause::dummy(), cx.param_env, predicate);
let infcx = cx.tcx.infer_ctxt().build();
infcx.predicate_must_hold_modulo_regions(&obligation)
Expand Down

0 comments on commit 8998ce2

Please sign in to comment.