Remove ty::Binder::bind()
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
This commit is contained in:
parent
e28a93365a
commit
884053a4b4
10 changed files with 26 additions and 122 deletions
|
@ -822,12 +822,7 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> {
|
|||
let obligation = Obligation::new(
|
||||
ObligationCause::dummy(),
|
||||
param_env,
|
||||
Binder::bind(
|
||||
TraitPredicate {
|
||||
trait_ref: TraitRef::from_method(tcx, trait_id, substs),
|
||||
},
|
||||
tcx,
|
||||
),
|
||||
Binder::dummy(TraitPredicate { trait_ref }),
|
||||
);
|
||||
|
||||
let implsrc = tcx.infer_ctxt().enter(|infcx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue