Expand description
Exhaustiveness Checking for Match Expressions
Implements compile-time verification that all enum variants are covered in match expressions.
Rules:
- Patterns with
whereguards do NOT contribute to exhaustiveness coverage - Unguarded
_(wildcard) or identifier pattern makes match exhaustive - For enums: Uncovered = AllVariants - CoveredVariants
Enums§
- Exhaustiveness
Result - Result of exhaustiveness checking
Functions§
- check_
exhaustiveness - Check exhaustiveness of a match expression
- check_
exhaustiveness_ for_ type - Check exhaustiveness from inference-level type information.
- require_
exhaustive - Check a match expression and return an error if non-exhaustive