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
|
@ -182,9 +182,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
ty::PredicateKind::Projection(proj_predicate) => self
|
||||
.deduce_sig_from_projection(
|
||||
Some(span.0),
|
||||
pred.0.kind().rebind(
|
||||
pred.map_bound(|_| proj_predicate).subst(self.tcx, substs),
|
||||
),
|
||||
pred.0
|
||||
.kind()
|
||||
.rebind(pred.rebind(proj_predicate).subst(self.tcx, substs)),
|
||||
),
|
||||
_ => None,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue