about summary refs log tree commit diff
path: root/tests/ui/patchable-function-entry/patchable-function-entry-flags.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-04-01 12:15:23 +0000
committerbors <bors@rust-lang.org>2024-04-01 12:15:23 +0000
commitc82d168b79fbe1e0711eb199d6decdd847c92fba (patch)
treef9a2e3d7e5318f4c8a1785e9eb983f536b258685 /tests/ui/patchable-function-entry/patchable-function-entry-flags.rs
parenta6ddf5fb804f8f8cdde8682ab61d889387118004 (diff)
parent7e8f2d8fd3ceece8051beed5add23191696646a9 (diff)
downloadrust-c82d168b79fbe1e0711eb199d6decdd847c92fba.tar.gz
rust-c82d168b79fbe1e0711eb199d6decdd847c92fba.zip
Auto merge of #16979 - Nadrieril:contiguous-enum-id, r=Veykril
pattern analysis: Use contiguous indices for enum variants

The main blocker to using the in-tree version of the `pattern_analysis` crate is that rustc requires enum indices to be contiguous because it uses `IndexVec`/`BitSet` for performance. Currently we swap these out for `FxHashMap`/`FxHashSet` when the `rustc` feature is off, but we can't do that if we use the in-tree crate.

This PR solves the problem by using contiguous indices on the r-a side too.
Diffstat (limited to 'tests/ui/patchable-function-entry/patchable-function-entry-flags.rs')
0 files changed, 0 insertions, 0 deletions