about summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2023-01-17 23:17:13 -0800
committerScott McMurray <scottmcm@users.noreply.github.com>2023-01-17 23:17:51 -0800
commit925dc37313853f15dc21e42dc869b024fe488ef3 (patch)
treec503b06f129aa275e86f31ef0b777de4dd88daa9 /compiler/rustc_lint/src
parente08b379d5d5840a2976d73d1754e8821a9973b66 (diff)
downloadrust-925dc37313853f15dc21e42dc869b024fe488ef3.tar.gz
rust-925dc37313853f15dc21e42dc869b024fe488ef3.zip
Stop using `BREAK` & `CONTINUE` in compiler
Switching them to `Break(())` and `Continue(())` instead.

libs-api would like to remove these constants, so stop using them in compiler to make the removal PR later smaller.
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 f2ab44ac97c..be47a3e238c 100644
--- a/compiler/rustc_lint/src/types.rs
+++ b/compiler/rustc_lint/src/types.rs
@@ -1147,7 +1147,7 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
 
             fn visit_ty(&mut self, ty: Ty<'tcx>) -> ControlFlow<Self::BreakTy> {
                 if !ty.has_opaque_types() {
-                    return ControlFlow::CONTINUE;
+                    return ControlFlow::Continue(());
                 }
 
                 if let ty::Alias(ty::Opaque, ..) = ty.kind() {