diff --git a/src/protocol/parser/pass_symbols.rs b/src/protocol/parser/pass_symbols.rs index 3c3b628f105947d8748d9318ac4a237d1606e4fe..2688658feb17f4d0e48c04846443c44f55b7a46c 100644 --- a/src/protocol/parser/pass_symbols.rs +++ b/src/protocol/parser/pass_symbols.rs @@ -45,7 +45,7 @@ impl PassSymbols { self.reset(); let module = &mut modules[module_idx]; - let module_is_compiler_file = module.is_compiler_file; + let add_to_global_namespace = module.add_to_global_namespace; debug_assert_eq!(module.phase, ModuleCompilationPhase::Tokenized); debug_assert!(module.root_id.is_invalid()); // not set yet @@ -89,7 +89,7 @@ impl PassSymbols { } } - if module_is_compiler_file { + if add_to_global_namespace { debug_assert!(self.symbols.is_empty()); ctx.symbols.get_all_symbols_defined_in_scope(module_scope, &mut self.symbols); for symbol in self.symbols.drain(..) {