We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
extern crate
1 parent 75c155b commit dd19bf0Copy full SHA for dd19bf0
src/librustc_resolve/resolve_imports.rs
@@ -197,7 +197,8 @@ impl<'a> Resolver<'a> {
197
// If the resolution doesn't depend on glob definability, check privacy and return.
198
if let Some(result) = self.try_result(&resolution, ns) {
199
return result.and_then(|binding| {
200
- if self.is_accessible(binding.vis) && !is_disallowed_private_import(binding) {
+ if self.is_accessible(binding.vis) && !is_disallowed_private_import(binding) ||
201
+ binding.is_extern_crate() { // c.f. issue #37020
202
Success(binding)
203
} else {
204
Failed(None)
0 commit comments