You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
lnicola
pushed a commit
to lnicola/rust
that referenced
this issue
Apr 20, 2024
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.
STR
std::rc::Rc
[1][src]
link [2]alloc::rc::Rc
[4][src]
link [5] - this one worksHere are the full text links:
[1] http://doc.rust-lang.org/std/rc/struct.Rc.html
[2] http://doc.rust-lang.org/alloc/rc/struct.Rc.html?gotosrc=1835
[3] http://doc.rust-lang.org/alloc/rc/undefined
[4] http://doc.rust-lang.org/alloc/rc/struct.Rc.html
[5] http://doc.rust-lang.org/src/alloc/home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/liballoc/rc.rs.html#174-180
The text was updated successfully, but these errors were encountered: