stop skipping builtin imports

This commit is contained in:
Folkert 2022-04-16 19:41:29 +02:00
parent 2b07b8c78d
commit 392b429e1a
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -64,17 +64,8 @@ impl ExposedForModule {
let mut imported_values = Vec::new(); let mut imported_values = Vec::new();
for symbol in it { for symbol in it {
// Today, builtins are not actually imported, let module = exposed_by_module.exposed.get(&symbol.module_id());
// but generated in each module that uses them if let Some(ExposedModuleTypes::Valid { .. }) = module {
//
// This will change when we write builtins in roc
if symbol.is_builtin() {
continue;
}
if let Some(ExposedModuleTypes::Valid { .. }) =
exposed_by_module.exposed.get(&symbol.module_id())
{
imported_values.push(*symbol); imported_values.push(*symbol);
} else { } else {
continue; continue;