This commit is contained in:
Folkert 2020-12-10 02:47:45 +01:00
parent d81544b061
commit d7449482c3

View file

@ -273,13 +273,9 @@ pub fn canonicalize_module_defs<'a>(
// iterator over all builtin symbols
for symbol in references.iter() {
if symbol.is_builtin() {
match builtins::builtin_defs_map(*symbol, var_store) {
Some(def) => {
declarations.push(Declaration::Builtin(def));
}
None => {
// this can be the case for builtin types
}
// this can fail when the symbol is for builtin types, or has no implementation yet
if let Some(def) = builtins::builtin_defs_map(*symbol, var_store) {
declarations.push(Declaration::Builtin(def));
}
}
}