We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
extern crate
1 parent 06f1099 commit 380108eCopy full SHA for 380108e
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