Remove an if statement with an condition that is always false
This commit is contained in:
parent
3e7a22e3bc
commit
227cc5cd26
1 changed files with 0 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue