Support importing inaccessible extern crate
s with a warning again.
This commit is contained in:
parent
75c155b834
commit
dd19bf0843
@ -197,7 +197,8 @@ impl<'a> Resolver<'a> {
|
||||
// If the resolution doesn't depend on glob definability, check privacy and return.
|
||||
if let Some(result) = self.try_result(&resolution, ns) {
|
||||
return result.and_then(|binding| {
|
||||
if self.is_accessible(binding.vis) && !is_disallowed_private_import(binding) {
|
||||
if self.is_accessible(binding.vis) && !is_disallowed_private_import(binding) ||
|
||||
binding.is_extern_crate() { // c.f. issue #37020
|
||||
Success(binding)
|
||||
} else {
|
||||
Failed(None)
|
||||
|
Loading…
Reference in New Issue
Block a user