Remove MonoProblem

This commit is contained in:
Ayaz Hafiz 2022-04-28 14:46:17 -04:00 committed by ayazhafiz
parent c969c7a15e
commit 89757dc31f
9 changed files with 12 additions and 408 deletions

View file

@ -519,7 +519,6 @@ pub struct MonomorphizedModule<'a> {
pub platform_path: Box<str>,
pub can_problems: MutMap<ModuleId, Vec<roc_problem::can::Problem>>,
pub type_problems: MutMap<ModuleId, Vec<solve::TypeError>>,
pub mono_problems: MutMap<ModuleId, Vec<roc_mono::ir::MonoProblem>>,
pub procedures: MutMap<(Symbol, ProcLayout<'a>), Proc<'a>>,
pub entry_point: EntryPoint<'a>,
pub exposed_to_host: ExposedToHost,
@ -547,10 +546,6 @@ impl<'a> MonomorphizedModule<'a> {
total += problems.len();
}
for problems in self.mono_problems.values() {
total += problems.len();
}
total
}
}
@ -2321,7 +2316,6 @@ fn finish_specialization(
} = state;
let ModuleCache {
mono_problems,
type_problems,
can_problems,
sources,
@ -2384,7 +2378,6 @@ fn finish_specialization(
Ok(MonomorphizedModule {
can_problems,
mono_problems,
type_problems,
output_path: output_path.unwrap_or(DEFAULT_APP_OUTPUT_PATH).into(),
platform_path,