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

@ -580,7 +580,7 @@ impl<'tcx> Predicate<'tcx> {
if let PredicateKind::Trait(TraitPredicate { trait_ref, constness, polarity }) = self.kind().skip_binder()
&& constness != BoundConstness::NotConst
{
self = tcx.mk_predicate(self.kind().map_bound(|_| PredicateKind::Trait(TraitPredicate {
self = tcx.mk_predicate(self.kind().rebind(PredicateKind::Trait(TraitPredicate {
trait_ref,
constness: BoundConstness::NotConst,
polarity,