1
Fork 0

Inline Predicate::has_vars_bound_at_or_above

This commit is contained in:
Tomasz Miąsko 2022-07-15 00:00:00 +00:00
parent bb73f171e5
commit 0e6251dcde

View file

@ -1122,6 +1122,7 @@ impl<'tcx> TypeVisitable<'tcx> for ty::Predicate<'tcx> {
visitor.visit_predicate(*self)
}
#[inline]
fn has_vars_bound_at_or_above(&self, binder: ty::DebruijnIndex) -> bool {
self.outer_exclusive_binder() > binder
}