Skip to content

Commit

Permalink
chore: report used instances correctly in diagnostics (#4049)
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em authored May 2, 2024
1 parent 5f1c4df commit e13613d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lean/Meta/Diagnostics.lean
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e13613d

Please sign in to comment.