]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_resolve/resolve_imports.rs
rustc_resolve: use `continue` instead of `return` to "exit" a loop iteration.
[rust.git] / src / librustc_resolve / resolve_imports.rs
index c86d430faceabb10337264a77d8beb9bccb5ddcd..dc4a76db6926654ad3af964ed30f5eec4befeba5 100644 (file)
@@ -746,7 +746,7 @@ struct UniformPathsCanaryResults<'a> {
             // Currently imports can't resolve in non-module scopes,
             // we only have canaries in them for future-proofing.
             if external_crate.is_none() && results.module_scope.is_none() {
-                return;
+                continue;
             }
 
             {
@@ -761,7 +761,7 @@ struct UniformPathsCanaryResults<'a> {
                 let possible_resultions =
                     1 + all_results.filter(|&def| def != first).count();
                 if possible_resultions <= 1 {
-                    return;
+                    continue;
                 }
             }