Fix regression from #31461 and fix the test that was supposed to catch it.
This commit is contained in:
parent
1de70d33f7
commit
91894631d0
2 changed files with 2 additions and 1 deletions
|
|
@ -524,6 +524,7 @@ impl<'a, 'b:'a, 'tcx:'b> ImportResolver<'a, 'b, 'tcx> {
|
|||
build_reduced_graph::populate_module_if_necessary(self.resolver, target_module);
|
||||
target_module.for_each_child(|name, ns, binding| {
|
||||
if !binding.defined_with(DefModifiers::IMPORTABLE | DefModifiers::PUBLIC) { return }
|
||||
if binding.is_extern_crate() { return }
|
||||
self.define(module_, name, ns, directive.import(binding));
|
||||
|
||||
if ns == TypeNS && directive.is_public &&
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
extern crate core;
|
||||
|
||||
mod T {
|
||||
use super::*;
|
||||
pub use super::*;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue