diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-01-17 20:21:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-17 20:21:23 +0100 |
| commit | 3a3242a0f92c5444ca8ae21450b530da2d8880c3 (patch) | |
| tree | 3d8010d8e2f488da1d23fbc1bc2e496ad731527d /compiler/rustc_query_impl/src | |
| parent | e0aa4df7980126ac6285a4b97d542886dac3e1fb (diff) | |
| parent | 19d6f068ee75d258a5f14d609894af49943f907e (diff) | |
| download | rust-3a3242a0f92c5444ca8ae21450b530da2d8880c3.tar.gz rust-3a3242a0f92c5444ca8ae21450b530da2d8880c3.zip | |
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```
Diffstat (limited to 'compiler/rustc_query_impl/src')
0 files changed, 0 insertions, 0 deletions
