Remove PredicateKind::Atom
This commit is contained in:
parent
8a6518427e
commit
8278314a8b
12 changed files with 73 additions and 101 deletions
|
@ -541,8 +541,7 @@ impl<'cx, 'tcx> InferCtxt<'cx, 'tcx> {
|
|||
span_bug!(cause.span, "unexpected const outlives {:?}", constraint);
|
||||
}
|
||||
};
|
||||
let predicate =
|
||||
predicate.rebind(atom).potentially_quantified(self.tcx, ty::PredicateKind::ForAll);
|
||||
let predicate = predicate.rebind(atom).potentially_quantified(self.tcx);
|
||||
|
||||
Obligation::new(cause.clone(), param_env, predicate)
|
||||
})
|
||||
|
|
|
@ -14,7 +14,6 @@ pub fn anonymize_predicate<'tcx>(
|
|||
let new = ty::PredicateKind::ForAll(tcx.anonymize_late_bound_regions(binder));
|
||||
tcx.reuse_or_mk_predicate(pred, new)
|
||||
}
|
||||
ty::PredicateKind::Atom(_) => pred,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue