Skip to content

Commit

Permalink
Don't emit non-exhaustiveness warning if no-evaluators is present (#…
Browse files Browse the repository at this point in the history
…1021)

Closes runtimeverification/k#4148

Updates `matching` to not emit a warning if the `no-evaluators`
attribute is present.
  • Loading branch information
Scott-Guest authored Apr 8, 2024
1 parent ef8c8f9 commit 29463bd
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1087,15 +1087,16 @@ class Matrix private (
val location = Parser.location(attributes)
val source = Parser.source(attributes)

kem(
new MatchingException(
MatchingException.Type.NON_EXHAUSTIVE_MATCH,
"Non exhaustive match detected",
source,
location,
func
if (!Parser.hasAtt(attributes, "no-evaluators"))
kem(
new MatchingException(
MatchingException.Type.NON_EXHAUSTIVE_MATCH,
"Non exhaustive match detected",
source,
location,
func
)
)
)
}
}

Expand Down

0 comments on commit 29463bd

Please sign in to comment.