1
Fork 0

Cleanup free_region_relations a bit

This commit is contained in:
Jack Huey 2022-09-11 03:53:54 -04:00
parent 8996ea93b6
commit 1a663c0f53
6 changed files with 91 additions and 72 deletions

View file

@ -81,6 +81,7 @@ fn compute_implied_outlives_bounds<'tcx>(
// From the full set of obligations, just filter down to the
// region relationships.
outlives_bounds.extend(obligations.into_iter().filter_map(|obligation| {
debug!(?obligation);
assert!(!obligation.has_escaping_bound_vars());
match obligation.predicate.kind().no_bound_vars() {
None => None,