Convert SpannedTypeVisitor
to use VisitorResult
This commit is contained in:
parent
be9b125d41
commit
ea9ae30671
5 changed files with 24 additions and 28 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue