Fix regression from #31461 and fix the test that was supposed to catch it.

This commit is contained in:
Jeffrey Seyfried 2016-02-11 07:18:41 +00:00
parent 1de70d33f7
commit 91894631d0
2 changed files with 2 additions and 1 deletions

View file

@ -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 &&

View file

@ -14,7 +14,7 @@
extern crate core;
mod T {
use super::*;
pub use super::*;
}
fn main() {