···113113 .get(PRELUDE_MODULE_NAME)
114114 .expect("Unable to find prelude in importable modules");
115115116116- let names = Self::build_names(¤t_package, prelude, importable_modules);
116116+ let names = Self::build_names(prelude, importable_modules);
117117118118 Self {
119119 current_package,
···144144 }
145145146146 fn build_names(
147147- current_package: &str,
148147 prelude: &ModuleInterface,
149148 importable_modules: &im::HashMap<EcoString, ModuleInterface>,
150149 ) -> Names {
···164163165164 // Find potential type aliases which reexport internal types
166165 for module in importable_modules.values() {
167167- // Internal types are accessibly within the package they are defined,
168168- // so it doesn't make sense to look for reexports within the same
169169- // package.
170170- if module.package == current_package {
171171- continue;
172172- }
173166 // Internal modules are not part of the public API so they are also
174167 // not considered.
175168 if module.is_internal {