granite-rust/compiler/rustc_pattern_analysis
bors 74c3f5a146 Auto merge of #120324 - Nadrieril:remove-interior-mutability, r=compiler-errors
pattern_analysis: track usefulness without interior mutability

Because of or-patterns, exhaustiveness needs to be able to lint if a sub-pattern is redundant, e.g. in `Some(_) | Some(true)`. So far the only sane solution I had found was interior mutability. This is a bit of an abstraction leak, and would become a footgun if we ever reused the same `DeconstructedPat`. This PR replaces interior mutability with an address-indexed hashmap, which is logically equivalent.
2024-02-12 22:16:58 +00:00
..
src Auto merge of #120324 - Nadrieril:remove-interior-mutability, r=compiler-errors 2024-02-12 22:16:58 +00:00
Cargo.toml Stop using derivative in rustc_pattern_analysis 2024-01-27 14:21:01 +02:00
messages.ftl Extract exhaustiveness into its own crate 2023-12-11 11:20:55 +01:00