1
Fork 0

rustc_error, rustc_private, rustc_ast: Switch to stable hash containers

This commit is contained in:
Niklas Jonsson 2022-07-16 15:16:57 +02:00
parent db9d86b58d
commit 8d3c30c004
8 changed files with 36 additions and 16 deletions

View file

@ -337,7 +337,7 @@ impl fmt::Debug for DefId {
}
}
rustc_data_structures::define_id_collections!(DefIdMap, DefIdSet, DefId);
rustc_data_structures::define_id_collections!(DefIdMap, DefIdSet, DefIdMapEntry, DefId);
/// A `LocalDefId` is equivalent to a `DefId` with `krate == LOCAL_CRATE`. Since
/// we encode this information in the type, we can ensure at compile time that
@ -399,7 +399,12 @@ impl<D: Decoder> Decodable<D> for LocalDefId {
}
}
rustc_data_structures::define_id_collections!(LocalDefIdMap, LocalDefIdSet, LocalDefId);
rustc_data_structures::define_id_collections!(
LocalDefIdMap,
LocalDefIdSet,
LocalDefIdMapEntry,
LocalDefId
);
impl<CTX: HashStableContext> HashStable<CTX> for DefId {
#[inline]