1
Fork 0

change map_bound(|_| x to rebind(x

This commit is contained in:
Deadbeef 2022-07-21 07:45:49 +00:00
parent 8464396a19
commit a0ebb2ed8b
3 changed files with 6 additions and 6 deletions

View file

@ -31,14 +31,14 @@ pub(crate) fn update<'tcx, T>(
obligation
.predicate
.kind()
.map_bound(|_| {
.rebind(
// (*) binder moved here
ty::PredicateKind::Trait(ty::TraitPredicate {
trait_ref,
constness: tpred.constness,
polarity: tpred.polarity,
})
})
)
.to_predicate(infcx.tcx),
);
// Don't report overflow errors. Otherwise equivalent to may_hold.