1
Fork 0

Split TypeVisitableExt from TypeVisitable

This commit is contained in:
Alan Egerton 2023-02-10 19:39:24 +00:00
parent ba55a453eb
commit 36d09e3906
No known key found for this signature in database
GPG key ID: 7D4C2F6C22122532
2 changed files with 5 additions and 11 deletions

View file

@ -764,16 +764,6 @@ impl<'tcx> ir::TypeVisitable<'tcx> for ty::Predicate<'tcx> {
fn visit_with<V: TypeVisitor<'tcx>>(&self, visitor: &mut V) -> ControlFlow<V::BreakTy> {
visitor.visit_predicate(*self)
}
#[inline]
fn has_vars_bound_at_or_above(&self, binder: ty::DebruijnIndex) -> bool {
self.outer_exclusive_binder() > binder
}
#[inline]
fn has_type_flags(&self, flags: ty::TypeFlags) -> bool {
self.flags().intersects(flags)
}
}
impl<'tcx> TypeSuperFoldable<'tcx> for ty::Predicate<'tcx> {