Remove ty::Binder::bind()

Co-authored-by: Noah Lev <camelidcamel@gmail.com>
This commit is contained in:
Yuki Okushi 2021-07-02 18:48:34 +09:00
parent e28a93365a
commit 884053a4b4
No known key found for this signature in database
GPG key ID: DABA5B072961C18A
10 changed files with 26 additions and 122 deletions

View file

@ -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| {