This should prevent a class of bugs where one queries the wrong type of global, which results in oddities at runtime. Release Notes: - N/A --------- Co-authored-by: Marshall <marshall@zed.dev> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
15 lines
407 B
Rust
15 lines
407 B
Rust
#[cfg(feature = "test-support")]
|
|
pub type HashMap<K, V> = FxHashMap<K, V>;
|
|
|
|
#[cfg(feature = "test-support")]
|
|
pub type HashSet<T> = FxHashSet<T>;
|
|
|
|
#[cfg(not(feature = "test-support"))]
|
|
pub type HashMap<K, V> = std::collections::HashMap<K, V>;
|
|
|
|
#[cfg(not(feature = "test-support"))]
|
|
pub type HashSet<T> = std::collections::HashSet<T>;
|
|
|
|
pub use rustc_hash::{FxHashMap, FxHashSet};
|
|
pub use std::collections::*;
|