safe transmute: use FxIndex{Map,Set}
instead of FxHash{Map,Set}
resolves query instability issues, and probably better for performance
This commit is contained in:
parent
f46fffc276
commit
1d844fe629
4 changed files with 2 additions and 14 deletions
|
@ -13,11 +13,7 @@
|
|||
#[macro_use]
|
||||
extern crate tracing;
|
||||
|
||||
#[cfg(feature = "rustc")]
|
||||
pub(crate) use rustc_data_structures::fx::{FxHashMap as Map, FxHashSet as Set};
|
||||
|
||||
#[cfg(not(feature = "rustc"))]
|
||||
pub(crate) use std::collections::{HashMap as Map, HashSet as Set};
|
||||
pub(crate) use rustc_data_structures::fx::{FxIndexMap as Map, FxIndexSet as Set};
|
||||
|
||||
pub(crate) mod layout;
|
||||
pub(crate) mod maybe_transmutable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue