Bugfix match

This commit is contained in:
Ayaz Hafiz 2022-12-02 16:31:47 -06:00
parent 304b88cdb2
commit 7562525e96
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 8 additions and 3 deletions

View file

@ -16,6 +16,7 @@ const EXPANDED_STACK_SIZE: usize = 8 * 1024 * 1024;
use roc_collections::all::MutMap;
use roc_load::ExecutionMode;
use roc_load::LoadConfig;
use roc_load::LoadMonomorphizedError;
use roc_load::Threading;
use roc_module::symbol::Symbol;
use roc_mono::ir::Proc;
@ -113,7 +114,9 @@ fn compiles_to_ir(test_name: &str, src: &str) {
let mut loaded = match loaded {
Ok(x) => x,
Err(roc_load::LoadingProblem::FormattedReport(report)) => {
Err(LoadMonomorphizedError::LoadingProblem(roc_load::LoadingProblem::FormattedReport(
report,
))) => {
println!("{}", report);
panic!();
}