From 227cc5cd263514fb3c8811e70ef3c94d0add04d3 Mon Sep 17 00:00:00 2001 From: Jeffrey Seyfried Date: Mon, 14 Mar 2016 07:10:58 +0000 Subject: [PATCH] Remove an `if` statement with an condition that is always false --- src/librustc_resolve/resolve_imports.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/librustc_resolve/resolve_imports.rs b/src/librustc_resolve/resolve_imports.rs index b6fbfe17406..f958ca2a441 100644 --- a/src/librustc_resolve/resolve_imports.rs +++ b/src/librustc_resolve/resolve_imports.rs @@ -283,7 +283,6 @@ impl<'a> ::ModuleS<'a> { fn define_in_glob_importers(&self, name: Name, ns: Namespace, binding: &'a NameBinding<'a>) { if !binding.defined_with(DefModifiers::PUBLIC | DefModifiers::IMPORTABLE) { return } - if binding.is_extern_crate() { return } for &(importer, directive) in self.glob_importers.borrow_mut().iter() { let _ = importer.try_define_child(name, ns, directive.import(binding, None)); }