Support importing inaccessible extern crates with a warning again.
This commit is contained in:
parent
75c155b834
commit
dd19bf0843
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue