Fix more tests

This commit is contained in:
Brian Carroll 2022-11-12 09:12:28 +00:00
parent 894697b284
commit ed048c7c93
No known key found for this signature in database
GPG key ID: 9CF4E3BF9C4722C7
6 changed files with 9 additions and 4 deletions

View file

@ -53,6 +53,7 @@ pub fn helper(
let load_config = LoadConfig {
target_info: roc_target::TargetInfo::default_x86_64(),
render: roc_reporting::report::RenderTarget::ColorTerminal,
palette: roc_reporting::report::DEFAULT_PALETTE,
threading: Threading::Single,
exec_mode: ExecutionMode::Executable,
};

View file

@ -107,7 +107,7 @@ fn create_llvm_module<'a>(
let mut delayed_errors = Vec::new();
for (home, (module_path, src)) in loaded.sources {
use roc_reporting::report::{can_problem, type_problem, RocDocAllocator, DEFAULT_PALETTE};
use roc_reporting::report::{can_problem, type_problem, RocDocAllocator};
let can_problems = loaded.can_problems.remove(&home).unwrap_or_default();
let type_problems = loaded.type_problems.remove(&home).unwrap_or_default();