mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
stop skipping builtin imports
This commit is contained in:
parent
2b07b8c78d
commit
392b429e1a
1 changed files with 2 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue