Remove PredicateKind
This commit is contained in:
parent
4cb3d6f983
commit
4cd6f85a07
12 changed files with 38 additions and 68 deletions
|
@ -31,7 +31,7 @@ fn inferred_outlives_of(tcx: TyCtxt<'_>, item_def_id: DefId) -> &[(ty::Predicate
|
|||
let mut pred: Vec<String> = predicates
|
||||
.iter()
|
||||
.map(|(out_pred, _)| {
|
||||
let ty::PredicateKind::ForAll(binder) = out_pred.kind();
|
||||
let binder = out_pred.kind();
|
||||
match binder.skip_binder() {
|
||||
ty::PredicateAtom::RegionOutlives(p) => p.to_string(),
|
||||
ty::PredicateAtom::TypeOutlives(p) => p.to_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue