1
Fork 0

Convert SpannedTypeVisitor to use VisitorResult

This commit is contained in:
Jason Newcomb 2024-02-24 19:25:04 -05:00
parent be9b125d41
commit ea9ae30671
5 changed files with 24 additions and 28 deletions

View file

@ -1065,8 +1065,8 @@ impl<'tcx> TypePrivacyVisitor<'tcx> {
}
impl<'tcx> rustc_ty_utils::sig_types::SpannedTypeVisitor<'tcx> for TypePrivacyVisitor<'tcx> {
type BreakTy = ();
fn visit(&mut self, span: Span, value: impl TypeVisitable<TyCtxt<'tcx>>) -> ControlFlow<()> {
type Result = ControlFlow<()>;
fn visit(&mut self, span: Span, value: impl TypeVisitable<TyCtxt<'tcx>>) -> Self::Result {
self.span = span;
value.visit_with(&mut self.skeleton())
}