Auto merge of - jseyfried:fix_regression, r=nrc

This fixes a regression caused by  allowing extern crates to be glob imported, and it fixes the test that was supposed to catch it.
r? @nrc
This commit is contained in:
bors 2016-02-15 05:19:29 +00:00
commit 69ad91290d
2 changed files with 2 additions and 1 deletions
src

@ -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() {