mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
Fail builds if builtins have type errors
This commit is contained in:
parent
bb1f4cd5e8
commit
e7c7eb623e
1 changed files with 4 additions and 0 deletions
|
@ -96,6 +96,10 @@ fn write_types_for_module_real(module_id: ModuleId, filename: &str, output_path:
|
|||
}
|
||||
};
|
||||
|
||||
if module.total_problems() > 0 {
|
||||
panic!("Problems were found! Refusing to build cached subs.\nTry building with ROC_SKIP_SUBS_CACH=1 to see them.");
|
||||
}
|
||||
|
||||
let subs = module.solved.into_inner();
|
||||
let exposed_vars_by_symbol: Vec<_> = module.exposed_to_host.into_iter().collect();
|
||||
let abilities = module.abilities_store;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue