X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_data_structures%2Ffx.rs;h=bbeb193dba32b4c8970d8bc18160d4d2dd5563c7;hb=d493dccef7ae1d2ca739fe828bf9556b44dc460a;hp=a9e8c2edbff9ee64ae79f5f3ff5b7004619f4ef4;hpb=a06baa56b95674fc626b3c3fd680d6a65357fe60;p=rust.git diff --git a/src/librustc_data_structures/fx.rs b/src/librustc_data_structures/fx.rs index a9e8c2edbff..bbeb193dba3 100644 --- a/src/librustc_data_structures/fx.rs +++ b/src/librustc_data_structures/fx.rs @@ -4,3 +4,11 @@ pub type FxIndexMap = indexmap::IndexMap>; pub type FxIndexSet = indexmap::IndexSet>; + +#[macro_export] +macro_rules! define_id_collections { + ($map_name:ident, $set_name:ident, $key:ty) => { + pub type $map_name = $crate::fx::FxHashMap<$key, T>; + pub type $set_name = $crate::fx::FxHashSet<$key>; + }; +}