Remove PredicateKind
This commit is contained in:
parent
4cb3d6f983
commit
4cd6f85a07
12 changed files with 38 additions and 68 deletions
|
@ -345,7 +345,7 @@ impl<'a, 'b, 'tcx> FulfillProcessor<'a, 'b, 'tcx> {
|
|||
|
||||
let infcx = self.selcx.infcx();
|
||||
|
||||
let ty::PredicateKind::ForAll(binder) = *obligation.predicate.kind();
|
||||
let binder = obligation.predicate.kind();
|
||||
if binder.skip_binder().has_escaping_bound_vars() {
|
||||
match binder.skip_binder() {
|
||||
// Evaluation will discard candidates using the leak check.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue