stop inserting builtin implementations in all modules

This commit is contained in:
Folkert 2022-04-16 20:35:50 +02:00
parent 1568a57de0
commit 86c86ab41e
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -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 {
scope,
aliases,