Report errors without mono when roc foo.roc has errors

This commit is contained in:
Ayaz Hafiz 2022-08-16 10:36:20 -05:00
parent b809d6d452
commit 7c6d811769
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 146 additions and 74 deletions

View file

@ -2408,6 +2408,24 @@ fn update<'a>(
state.timings.insert(module_id, module_timing);
if matches!(state.exec_mode, ExecutionMode::ExecutableIfCheck) {
// We there may outstanding modules in the typecheked cache whose ident IDs
// aren't registered; transfer all of their idents over to the state, since
// we're now done and ready to report errors.
for (
module_id,
TypeCheckedModule {
ident_ids,
module_timing,
..
},
) in state.module_cache.typechecked.drain()
{
state.constrained_ident_ids.insert(module_id, ident_ids);
state.timings.insert(module_id, module_timing);
}
}
let documentation = {
let mut empty = MutMap::default();
std::mem::swap(&mut empty, &mut state.module_cache.documentation);