Exhaustiveness check
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 231
- Avg merge
- 19h 55m
- Merged PRs (30d)
- 67
Description
This issue tracks the implementation status of the exhaustiveness check.
All unimplemented patterns are converted to wildcards when match arms are lowered to matrix for now.
ADT
- enum
- union
- struct
Pattern
- paths
- identifier pattern
- wildcard
- tuple struct
- struct struct
- & and ref
- integer literal
- floating point literal
- range pattern
- string literal
- char literal
- or pattern (
pat | pat) - slice pattern
- grouped pattern
Others
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the issue's exhaustiveness checklist and the description of match-arm lowering to a matrix. Read the linked rustc Matrix and WitnessMatrix documentation; done is not narrowly defined because the issue covers multiple unchecked patterns, if guards, and memory optimization without naming repository files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100