about summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-02-23 02:44:20 -0500
committerGitHub <noreply@github.com>2025-02-23 02:44:20 -0500
commitf5c6287d7680bfe169a06e430b84408925beadd1 (patch)
tree1ce5ec7bf1318e497152890c51090deae2ca5605 /compiler/rustc_lint/src
parentda493c91d65454b1c7d0fbd4d62ca5af5498a0b4 (diff)
parent04c453c4bc4de30b41e3bd3ee7492d37b2cc3d89 (diff)
downloadrust-f5c6287d7680bfe169a06e430b84408925beadd1.tar.gz
rust-f5c6287d7680bfe169a06e430b84408925beadd1.zip
Rollup merge of #137448 - compiler-errors:control-flow-oops, r=scottmcm
Fix bugs due to unhandled `ControlFlow` in compiler

Well, one bug and one nit.
Diffstat (limited to 'compiler/rustc_lint/src')
-rw-r--r--compiler/rustc_lint/src/types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/types.rs b/compiler/rustc_lint/src/types.rs
index 31f75d3569c..cb83d405cc3 100644
--- a/compiler/rustc_lint/src/types.rs
+++ b/compiler/rustc_lint/src/types.rs
@@ -1587,7 +1587,7 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
         }
 
         impl<'a, 'b, 'tcx> ty::visit::TypeVisitor<TyCtxt<'tcx>> for FnPtrFinder<'a, 'b, 'tcx> {
-            type Result = ControlFlow<Ty<'tcx>>;
+            type Result = ();
 
             fn visit_ty(&mut self, ty: Ty<'tcx>) -> Self::Result {
                 if let ty::FnPtr(_, hdr) = ty.kind()