diff options
Diffstat (limited to 'vendor/chalk-ir-0.80.0/src/visit/binder_impls.rs')
-rw-r--r-- | vendor/chalk-ir-0.80.0/src/visit/binder_impls.rs | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/vendor/chalk-ir-0.80.0/src/visit/binder_impls.rs b/vendor/chalk-ir-0.80.0/src/visit/binder_impls.rs deleted file mode 100644 index 074450a53..000000000 --- a/vendor/chalk-ir-0.80.0/src/visit/binder_impls.rs +++ /dev/null @@ -1,45 +0,0 @@ -//! This module contains impls of `Visit` for those types that -//! introduce binders. -//! -//! The more interesting impls of `Visit` remain in the `visit` module. - -use crate::interner::HasInterner; -use crate::{Binders, Canonical, ControlFlow, DebruijnIndex, FnPointer, Interner, Visit, Visitor}; - -impl<I: Interner> Visit<I> for FnPointer<I> { - fn visit_with<B>( - &self, - visitor: &mut dyn Visitor<I, BreakTy = B>, - outer_binder: DebruijnIndex, - ) -> ControlFlow<B> { - self.substitution - .visit_with(visitor, outer_binder.shifted_in()) - } -} - -impl<T, I: Interner> Visit<I> for Binders<T> -where - T: HasInterner + Visit<I>, -{ - fn visit_with<B>( - &self, - visitor: &mut dyn Visitor<I, BreakTy = B>, - outer_binder: DebruijnIndex, - ) -> ControlFlow<B> { - self.value.visit_with(visitor, outer_binder.shifted_in()) - } -} - -impl<I, T> Visit<I> for Canonical<T> -where - I: Interner, - T: HasInterner<Interner = I> + Visit<I>, -{ - fn visit_with<B>( - &self, - visitor: &mut dyn Visitor<I, BreakTy = B>, - outer_binder: DebruijnIndex, - ) -> ControlFlow<B> { - self.value.visit_with(visitor, outer_binder.shifted_in()) - } -} |