rust/tests/ui/rfcs/rfc-0000-never_patterns
Matthias Krüger 949e55299d
Rollup merge of #120775 - Nadrieril:more-min_exh_pats, r=compiler-errors
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`
2024-02-08 20:34:59 +01:00
..
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