From 392b429e1a70d2a557bf6fa30378fc20b7fdae29 Mon Sep 17 00:00:00 2001 From: Folkert Date: Sat, 16 Apr 2022 19:41:29 +0200 Subject: [PATCH] stop skipping builtin imports --- compiler/constrain/src/module.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/compiler/constrain/src/module.rs b/compiler/constrain/src/module.rs index 8537932a72..26fff0e73a 100644 --- a/compiler/constrain/src/module.rs +++ b/compiler/constrain/src/module.rs @@ -64,17 +64,8 @@ impl ExposedForModule { let mut imported_values = Vec::new(); for symbol in it { - // Today, builtins are not actually imported, - // but generated in each module that uses them - // - // 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()) - { + let module = exposed_by_module.exposed.get(&symbol.module_id()); + if let Some(ExposedModuleTypes::Valid { .. }) = module { imported_values.push(*symbol); } else { continue;