rust/compiler/rustc_pattern_analysis/src
Matthias Krüger 3a3242a0f9
Rollup merge of #120039 - Nadrieril:remove-idx, r=compiler-errors
pat_analysis: Don't rely on contiguous `VariantId`s outside of rustc

Today's pattern_analysis uses `BitSet` and `IndexVec` on the provided enum variant ids, which only makes sense if these ids count the variants from 0. In rust-analyzer, the variant ids are global interning ids, which would make `BitSet` and `IndexVec` ridiculously wasteful. In this PR I add some shims to use `FxHashSet`/`FxHashMap` instead outside of rustc.

r? ```@compiler-errors```
2024-01-17 20:21:23 +01:00
..
constructor.rs Don't rely on contiguous VariantIds outside of rustc 2024-01-17 03:09:06 +01:00
errors.rs s/RustcCtxt/RustcMatchCheckCtxt/ 2023-12-15 16:58:38 +01:00
lib.rs Rollup merge of #120039 - Nadrieril:remove-idx, r=compiler-errors 2024-01-17 20:21:23 +01:00
lints.rs Lint overlapping ranges directly from exhaustiveness 2024-01-15 19:27:06 +01:00
pat.rs rustc_pattern_analysis no longer needs to be passed an arena 2024-01-12 18:55:27 +01:00
rustc.rs Remove the unused overlapping_range_endpoints Vec 2024-01-15 19:27:06 +01:00
usefulness.rs Remove the unused overlapping_range_endpoints Vec 2024-01-15 19:27:06 +01:00