Skip to content

Commit 227cc5c

Browse files
committed
Remove an if statement with an condition that is always false
1 parent 3e7a22e commit 227cc5c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustc_resolve/resolve_imports.rs

-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ impl<'a> ::ModuleS<'a> {
283283

284284
fn define_in_glob_importers(&self, name: Name, ns: Namespace, binding: &'a NameBinding<'a>) {
285285
if !binding.defined_with(DefModifiers::PUBLIC | DefModifiers::IMPORTABLE) { return }
286-
if binding.is_extern_crate() { return }
287286
for &(importer, directive) in self.glob_importers.borrow_mut().iter() {
288287
let _ = importer.try_define_child(name, ns, directive.import(binding, None));
289288
}

0 commit comments

Comments
 (0)