Switched some uses to UnordMap
This commit is contained in:
parent
2a96c6e517
commit
1be19f710c
7 changed files with 148 additions and 134 deletions
|
@ -46,7 +46,7 @@ use super::{DepContext, DepKind, FingerprintStyle};
|
|||
use crate::ich::StableHashingContext;
|
||||
|
||||
use rustc_data_structures::fingerprint::{Fingerprint, PackedFingerprint};
|
||||
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
|
||||
use rustc_data_structures::stable_hasher::{HashStable, StableHasher, ToStableHashKey};
|
||||
use rustc_hir::definitions::DefPathHash;
|
||||
use std::fmt;
|
||||
use std::hash::Hash;
|
||||
|
@ -247,3 +247,10 @@ impl<HCX> HashStable<HCX> for WorkProductId {
|
|||
self.hash.hash_stable(hcx, hasher)
|
||||
}
|
||||
}
|
||||
impl<HCX> ToStableHashKey<HCX> for WorkProductId {
|
||||
type KeyType = Fingerprint;
|
||||
#[inline]
|
||||
fn to_stable_hash_key(&self, _: &HCX) -> Self::KeyType {
|
||||
self.hash
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue