Skip to content

Commit 8844584

Browse files
committed
to be OR and not to AND, that's the question
1 parent 2b3e492 commit 8844584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_resolve/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4309,7 +4309,7 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> {
43094309
let is_visible_to_user =
43104310
!in_module_is_extern || name_binding.vis == ty::Visibility::Public;
43114311

4312-
if !is_extern_crate_that_also_appears_in_prelude || is_visible_to_user {
4312+
if !is_extern_crate_that_also_appears_in_prelude && is_visible_to_user {
43134313
// add the module to the lookup
43144314
let is_extern = in_module_is_extern || name_binding.is_extern_crate();
43154315
if seen_modules.insert(module.def_id().unwrap()) {

0 commit comments

Comments
 (0)