roc/crates/reporting
Ayaz Hafiz 1799d6ed0e
Construct exhaustiveness branches with condition, not branch, variable
Previously we would construct the shapes of unions used in the pattern
tree for exhaustiveness checking using the type of the branch patterns,
rather than the type of the condition variable. Clearly we want to
always use the condition variable, otherwise some branches will be
seen as exhaustive, when they are not!

To do this, we now index into the condition variable while refying the
patterns to build the tree for exhaustiveness checking.

Closes #4068
2022-09-19 13:37:59 -05:00
..
src Improve error message for uninhabited patterns 2022-09-19 10:55:02 -05:00
tests Construct exhaustiveness branches with condition, not branch, variable 2022-09-19 13:37:59 -05:00
.gitignore moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
Cargo.toml Bump bumpalo from 3.10.0 to 3.11.0 2022-09-12 21:08:56 +00:00