mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
stop inserting builtin implementations in all modules
This commit is contained in:
parent
1568a57de0
commit
86c86ab41e
1 changed files with 0 additions and 11 deletions
|
@ -534,17 +534,6 @@ pub fn canonicalize_module_defs<'a>(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO this loops over all symbols in the module, we can speed it up by having an
|
|
||||||
// iterator over all builtin symbols
|
|
||||||
for symbol in referenced_values.iter() {
|
|
||||||
if symbol.is_builtin() {
|
|
||||||
// this can fail when the symbol is for builtin types, or has no implementation yet
|
|
||||||
if let Some(def) = crate::builtins::builtin_defs_map(*symbol, var_store) {
|
|
||||||
declarations.push(Declaration::Builtin(def));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let output = ModuleOutput {
|
let output = ModuleOutput {
|
||||||
scope,
|
scope,
|
||||||
aliases,
|
aliases,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue