From 884458485064f3caa11cc8165ddfc09894bb1e42 Mon Sep 17 00:00:00 2001 From: Douglas Campos Date: Fri, 10 Aug 2018 16:28:22 +0000 Subject: [PATCH] to be OR and not to AND, that's the question --- src/librustc_resolve/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index e4a47460be2..b3aadf4dc72 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -4309,7 +4309,7 @@ fn lookup_import_candidates_from_module(&mut self, let is_visible_to_user = !in_module_is_extern || name_binding.vis == ty::Visibility::Public; - if !is_extern_crate_that_also_appears_in_prelude || is_visible_to_user { + if !is_extern_crate_that_also_appears_in_prelude && is_visible_to_user { // add the module to the lookup let is_extern = in_module_is_extern || name_binding.is_extern_crate(); if seen_modules.insert(module.def_id().unwrap()) {