rust/compiler/rustc_data_structures
bors 51f79b618d Auto merge of #76233 - cuviper:unhasher, r=Mark-Simulacrum
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-02 22:16:22 +00:00
..
src Auto merge of #76233 - cuviper:unhasher, r=Mark-Simulacrum 2020-09-02 22:16:22 +00:00
Cargo.toml datastructures: replace lazy_static by SyncLazy from std 2020-09-01 22:06:47 +01:00