rustc-ap-rustc_data_structures 654.0.0

Automatically published version of the package `rustc_data_structures` in the rust-lang/rust repository from commit 513a6473d69b3af34e6cdaa4efb288fe5283c3e9 The publishing script for this crate lives at: https://github.com/alexcrichton/rustc-auto-publish
Documentation
use std::hash::BuildHasherDefault;

pub use rustc_hash::{FxHashMap, FxHashSet, FxHasher};

pub type FxIndexMap<K, V> = indexmap::IndexMap<K, V, BuildHasherDefault<FxHasher>>;
pub type FxIndexSet<V> = indexmap::IndexSet<V, BuildHasherDefault<FxHasher>>;

#[macro_export]
macro_rules! define_id_collections {
    ($map_name:ident, $set_name:ident, $key:ty) => {
        pub type $map_name<T> = $crate::fx::FxHashMap<$key, T>;
        pub type $set_name = $crate::fx::FxHashSet<$key>;
    };
}