chore: do not generate "redundant alternatives" message when there are missing cases
This commit is contained in:
parent
a9e7290e4b
commit
b4ad6fc289
1 changed files with 1 additions and 0 deletions
|
|
@ -1012,6 +1012,7 @@ register_builtin_option match.ignoreUnusedAlts : Bool := {
|
|||
def reportMatcherResultErrors (altLHSS : List AltLHS) (result : MatcherResult) : TermElabM Unit := do
|
||||
unless result.counterExamples.isEmpty do
|
||||
withHeadRefOnly <| logError m!"missing cases:\n{Meta.Match.counterExamplesToMessageData result.counterExamples}"
|
||||
return ()
|
||||
unless match.ignoreUnusedAlts.get (← getOptions) || result.unusedAltIdxs.isEmpty do
|
||||
let mut i := 0
|
||||
for alt in altLHSS do
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue