提交 88445848 编写于 作者: D Douglas Campos

to be OR and not to AND, that's the question

上级 2b3e4921
......@@ -4309,7 +4309,7 @@ fn lookup_import_candidates_from_module<FilterFn>(&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()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册