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

@ -41,7 +41,6 @@ pub struct CodeGenTiming {
pub fn report_problems_monomorphized(loaded: &mut MonomorphizedModule) -> Problems {
report_problems(
loaded.total_problems(),
&loaded.sources,
&loaded.interns,
&mut loaded.can_problems,
@ -51,7 +50,6 @@ pub fn report_problems_monomorphized(loaded: &mut MonomorphizedModule) -> Proble
pub fn report_problems_typechecked(loaded: &mut LoadedModule) -> Problems {
report_problems(
loaded.total_problems(),
&loaded.sources,
&loaded.interns,
&mut loaded.can_problems,