diff options
| author | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-11-05 17:30:39 +0100 |
|---|---|---|
| committer | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-11-14 20:25:27 +0100 |
| commit | e0f3119103b79df190324e8d72a5827e4d0cd52d (patch) | |
| tree | 143c0a738920c72019b6304f073ee690da445927 /compiler/rustc_lint/src | |
| parent | 30e49a9ead550551e879af64ba91a0316da1c422 (diff) | |
Introduce `TypeVisitor::BreakTy`
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/types.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Self::BreakTy> { match ty.kind() { ty::Opaque(..) => { self.ty = Some(ty); |
