-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(experimental): Issue missing case error for match expressions #7560
Conversation
Co-authored-by: Maxim Vezenov <mvezenov@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'Compilation Time'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20
.
Benchmark suite | Current: b3ed7d7 | Previous: 223656f | Ratio |
---|---|---|---|
ram_blowup_regression |
20.7 s |
14.9 s |
1.39 |
This comment was automatically generated by workflow using github-action-benchmark.
CC: @TomAFrench
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'Compilation Memory'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20
.
Benchmark suite | Current: b3ed7d7 | Previous: 223656f | Ratio |
---|---|---|---|
rollup-block-root-empty |
365.29 MB |
302.97 MB |
1.21 |
rollup-merge |
363.71 MB |
301.39 MB |
1.21 |
This comment was automatically generated by workflow using github-action-benchmark.
CC: @TomAFrench
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'Execution Memory'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20
.
Benchmark suite | Current: b3ed7d7 | Previous: 223656f | Ratio |
---|---|---|---|
rollup-merge |
348.27 MB |
289.87 MB |
1.20 |
This comment was automatically generated by workflow using github-action-benchmark.
CC: @TomAFrench
Description
Problem*
Resolves
Summary*
Issues a missing case(s) error for match expressions missing any cases. This includes constructing an example of a value which fails to match.
Additional Context
Limitation: if the match doesn't match on any cases such asThis has been implemented along with ranges for integers (see tests).match foo {}
we don't issue a helpful error likeMissing cases Foo, Bar, Baz
and instead issueMissing cases: _
. This could be fixed but it is the end of the week so I wanted to get this work out.Documentation*
Check one:
PR Checklist*
cargo fmt
on default settings.