diff options
| author | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-10-25 11:50:56 +0100 |
|---|---|---|
| committer | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-10-30 12:27:47 +0100 |
| commit | 9433eb83fefab6e18fe9d963d1005bd9924e8323 (patch) | |
| tree | 5d5c6fcde0ded32f4e13dcedc250ecac2e626dc2 /compiler/rustc_lint/src | |
| parent | 24e1a7e6564edaf237a653bec147934d38cfac48 (diff) | |
Remove implicit `Continue` type
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 2bfa17b1219..2a02ef9925a 100644 --- a/compiler/rustc_lint/src/types.rs +++ b/compiler/rustc_lint/src/types.rs @@ -1136,7 +1136,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); |
