Print a horizontal rule after the last error

This commit is contained in:
Richard Feldman 2021-09-02 21:35:07 -04:00
parent 1360b04227
commit 828c5191cf
3 changed files with 23 additions and 2 deletions

View file

@ -721,6 +721,12 @@ pub struct MonomorphizedModule<'a> {
pub timings: MutMap<ModuleId, ModuleTiming>,
}
impl<'a> MonomorphizedModule<'a> {
pub fn total_problems(&self) -> usize {
self.can_problems.len() + self.type_problems.len() + self.mono_problems.len()
}
}
#[derive(Debug, Default)]
pub struct VariablySizedLayouts<'a> {
rigids: MutMap<Lowercase, Layout<'a>>,