mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 07:04:18 +00:00
Replace Deref bounds on Interner in favor of a SliceLike trait
This commit is contained in:
parent
a155c38989
commit
8998ce24e0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue