//! `TypeVisitable` implementations for MIR types use super::*; impl<'tcx, R: Idx, C: Idx> TypeVisitable<'tcx> for BitMatrix { fn visit_with>(&self, _: &mut V) -> ControlFlow { ControlFlow::CONTINUE } } impl<'tcx> TypeVisitable<'tcx> for ConstantKind<'tcx> { fn visit_with>(&self, visitor: &mut V) -> ControlFlow { visitor.visit_mir_const(*self) } } impl<'tcx> TypeSuperVisitable<'tcx> for ConstantKind<'tcx> { fn super_visit_with>(&self, visitor: &mut V) -> ControlFlow { match *self { ConstantKind::Ty(c) => c.visit_with(visitor), ConstantKind::Val(_, t) => t.visit_with(visitor), ConstantKind::Unevaluated(uv, t) => { uv.visit_with(visitor)?; t.visit_with(visitor) } } } }