about summary refs log tree commit diff
path: root/compiler/rustc_privacy
diff options
context:
space:
mode:
authorJason Newcomb <jsnewcomb@pm.me>2024-02-24 19:25:04 -0500
committerJason Newcomb <jsnewcomb@pm.me>2024-03-05 13:30:46 -0500
commitea9ae30671f5bc42c4af392e5556dd16be297e82 (patch)
tree7e7c37b68ad9d67a0294b9102de6e636f07bade6 /compiler/rustc_privacy
parentbe9b125d4180126f259d392fdf72ddb33e63013a (diff)
downloadrust-ea9ae30671f5bc42c4af392e5556dd16be297e82.tar.gz
rust-ea9ae30671f5bc42c4af392e5556dd16be297e82.zip
Convert `SpannedTypeVisitor` to use `VisitorResult`
Diffstat (limited to 'compiler/rustc_privacy')
-rw-r--r--compiler/rustc_privacy/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_privacy/src/lib.rs b/compiler/rustc_privacy/src/lib.rs
index fc110afd8e4..fe359861681 100644
--- a/compiler/rustc_privacy/src/lib.rs
+++ b/compiler/rustc_privacy/src/lib.rs
@@ -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())
     }