chore: report used instances correctly in diagnostics (#4049)

This commit is contained in:
Kim Morrison 2024-05-02 15:47:51 +10:00 committed by GitHub
parent 5f1c4df07d
commit e13613d633
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,7 +58,7 @@ def mkDiagSummaryForUnfoldedReducible (counters : PHashMap Name Nat) : MetaM Dia
getReducibilityStatusCore env declName matches .reducible
def mkDiagSummaryForUsedInstances : MetaM DiagSummary := do
mkDiagSummary (← get).diag.heuristicCounter
mkDiagSummary (← get).diag.instanceCounter
def appendSection (m : MessageData) (cls : Name) (header : String) (s : DiagSummary) : MessageData :=
if s.isEmpty then