From e0f3119103b79df190324e8d72a5827e4d0cd52d Mon Sep 17 00:00:00 2001 From: LeSeulArtichaut Date: Thu, 5 Nov 2020 17:30:39 +0100 Subject: Introduce `TypeVisitor::BreakTy` --- compiler/rustc_lint/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_lint/src') diff --git a/compiler/rustc_lint/src/types.rs b/compiler/rustc_lint/src/types.rs index 467a3a42590..802fb1970cd 100644 --- a/compiler/rustc_lint/src/types.rs +++ b/compiler/rustc_lint/src/types.rs @@ -1135,7 +1135,7 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> { }; impl<'a, 'tcx> ty::fold::TypeVisitor<'tcx> for ProhibitOpaqueTypes<'a, 'tcx> { - fn visit_ty(&mut self, ty: Ty<'tcx>) -> ControlFlow<()> { + fn visit_ty(&mut self, ty: Ty<'tcx>) -> ControlFlow { match ty.kind() { ty::Opaque(..) => { self.ty = Some(ty); -- cgit 1.4.1-3-g733a5