1
Fork 0

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:
Jack Wrenn 2022-08-23 15:52:49 +00:00
parent f46fffc276
commit 1d844fe629
4 changed files with 2 additions and 14 deletions

View file

@ -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;