change map_bound(|_| x
to rebind(x
This commit is contained in:
parent
8464396a19
commit
a0ebb2ed8b
3 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue