949e55299d
Make `min_exhaustive_patterns` match `exhaustive_patterns` better Split off from https://github.com/rust-lang/rust/pull/120742. There remained two edge cases where `min_exhaustive_patterns` wasn't behaving like `exhaustive_patterns`. This fixes them, and tests the feature in a bunch more cases. I essentially went through all uses of `exhaustive_patterns` to see which ones would be interesting to compare between the two features. r? `@compiler-errors` |
||
---|---|---|
.. | ||
120240-async-fn-never-arg.rs | ||
120240-async-fn-never-arg.stderr | ||
bindings.rs | ||
bindings.stderr | ||
check.rs | ||
check.stderr | ||
diverge-causes-unreachable-code.rs | ||
diverge-causes-unreachable-code.stderr | ||
diverges-not.rs | ||
diverges-not.stderr | ||
diverges.rs | ||
ICE-119271-never-arm-attr-in-guard.rs | ||
ICE-119271-never-arm-attr-in-guard.stderr | ||
macros.rs | ||
parse.rs | ||
parse.stderr | ||
typeck.fail.stderr | ||
typeck.rs | ||
unreachable.exh_pats.stderr | ||
unreachable.rs |