Compute total_problems rather than asking for it

This commit is contained in:
Richard Feldman 2023-10-14 21:18:42 -04:00
parent 97f252c68b
commit eb135637ef
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
4 changed files with 11 additions and 21 deletions

View file

@ -223,22 +223,6 @@ pub struct ExposedToHost {
pub getters: Vec<Symbol>,
}
impl<'a> MonomorphizedModule<'a> {
pub fn total_problems(&self) -> usize {
let mut total = 0;
for problems in self.can_problems.values() {
total += problems.len();
}
for problems in self.type_problems.values() {
total += problems.len();
}
total
}
}
#[derive(Debug)]
pub struct ModuleTiming {
pub read_roc_file: Duration,