diff options
| author | bors <bors@rust-lang.org> | 2022-09-12 15:57:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-12 15:57:37 +0000 |
| commit | 52e003a6e93940ae49cbfc806c72ed5b0217cf4e (patch) | |
| tree | da7597df9ee4cb00ddb23f901fcbe5d78e694c0b /compiler/rustc_span | |
| parent | 7f115e3cd239af753aeb398a114fa321a3ce584b (diff) | |
| parent | 8d3c30c00491b8452300d5ebaeb7822c9271306f (diff) | |
| download | rust-52e003a6e93940ae49cbfc806c72ed5b0217cf4e.tar.gz rust-52e003a6e93940ae49cbfc806c72ed5b0217cf4e.zip | |
Auto merge of #99334 - NiklasJonsson:84447/error-privacy, r=oli-obk
rustc_error, rustc_private: Switch to stable hash containers Relates https://github.com/rust-lang/rust/issues/84447
Diffstat (limited to 'compiler/rustc_span')
| -rw-r--r-- | compiler/rustc_span/src/def_id.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/compiler/rustc_span/src/def_id.rs b/compiler/rustc_span/src/def_id.rs index ceb6b6c68b0..37b8371a8fe 100644 --- a/compiler/rustc_span/src/def_id.rs +++ b/compiler/rustc_span/src/def_id.rs @@ -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] |
