Remove PredicateKind
This commit is contained in:
parent
4cb3d6f983
commit
4cd6f85a07
12 changed files with 38 additions and 68 deletions
|
@ -9,12 +9,8 @@ pub fn anonymize_predicate<'tcx>(
|
|||
tcx: TyCtxt<'tcx>,
|
||||
pred: ty::Predicate<'tcx>,
|
||||
) -> ty::Predicate<'tcx> {
|
||||
match *pred.kind() {
|
||||
ty::PredicateKind::ForAll(binder) => {
|
||||
let new = ty::PredicateKind::ForAll(tcx.anonymize_late_bound_regions(binder));
|
||||
tcx.reuse_or_mk_predicate(pred, new)
|
||||
}
|
||||
}
|
||||
let new = tcx.anonymize_late_bound_regions(pred.kind());
|
||||
tcx.reuse_or_mk_predicate(pred, new)
|
||||
}
|
||||
|
||||
struct PredicateSet<'tcx> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue