about summary refs log tree commit diff
path: root/compiler/rustc_data_structures
AgeCommit message (Collapse)AuthorLines
2020-09-02Auto merge of #76233 - cuviper:unhasher, r=Mark-Simulacrumbors-1/+59
Avoid rehashing Fingerprint as a map key This introduces a no-op `Unhasher` for map keys that are already hash- like, for example `Fingerprint` and its wrapper `DefPathHash`. For these we can directly produce the `u64` hash for maps. The first use of this is `def_path_hash_to_def_id: Option<UnhashMap<DefPathHash, DefId>>`. cc #56308 r? @eddyb
2020-09-01Avoid rehashing Fingerprint as a map keyJosh Stone-1/+59
This introduces a no-op `Unhasher` for map keys that are already hash- like, for example `Fingerprint` and its wrapper `DefPathHash`. For these we can directly produce the `u64` hash for maps. The first use of this is `def_path_hash_to_def_id: Option<UnhashMap<DefPathHash, DefId>>`.
2020-09-01datastructures: replace `lazy_static` by `SyncLazy` from stdmarmeladema-28/+25
2020-08-30datastructures: replace `once_cell` crate with an impl from stdmarmeladema-3/+3
2020-08-30mv compiler to compiler/mark-0/+12150