Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #120324 - Nadrieril:remove-interior-mutability, r=compi…
…ler-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.
- Loading branch information