about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-17 20:21:23 +0100
committerGitHub <noreply@github.com>2024-01-17 20:21:23 +0100
commit3a3242a0f92c5444ca8ae21450b530da2d8880c3 (patch)
tree3d8010d8e2f488da1d23fbc1bc2e496ad731527d /compiler/rustc_query_impl/src
parente0aa4df7980126ac6285a4b97d542886dac3e1fb (diff)
parent19d6f068ee75d258a5f14d609894af49943f907e (diff)
downloadrust-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