rust/compiler/rustc_pattern_analysis
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
..
src Rollup merge of #120039 - Nadrieril:remove-idx, r=compiler-errors 2024-01-17 20:21:23 +01:00
Cargo.toml Don't rely on contiguous VariantIds outside of rustc 2024-01-17 03:09:06 +01:00
messages.ftl