Make PackedFingerprint's Fingerprint private
This commit is contained in:
parent
f09d474836
commit
05dde137ca
4 changed files with 25 additions and 8 deletions
|
@ -62,7 +62,7 @@ impl<K: DepKind> DepNode<K> {
|
|||
/// does not require any parameters.
|
||||
pub fn new_no_params(kind: K) -> DepNode<K> {
|
||||
debug_assert!(!kind.has_params());
|
||||
DepNode { kind, hash: PackedFingerprint(Fingerprint::ZERO) }
|
||||
DepNode { kind, hash: Fingerprint::ZERO.into() }
|
||||
}
|
||||
|
||||
pub fn construct<Ctxt, Key>(tcx: Ctxt, kind: K, arg: &Key) -> DepNode<K>
|
||||
|
@ -71,7 +71,7 @@ impl<K: DepKind> DepNode<K> {
|
|||
Key: DepNodeParams<Ctxt>,
|
||||
{
|
||||
let hash = arg.to_fingerprint(tcx);
|
||||
let dep_node = DepNode { kind, hash: PackedFingerprint(hash) };
|
||||
let dep_node = DepNode { kind, hash: hash.into() };
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use rustc_data_structures::fingerprint::{Fingerprint, PackedFingerprint};
|
||||
use rustc_data_structures::fingerprint::Fingerprint;
|
||||
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
|
||||
use rustc_data_structures::profiling::QueryInvocationId;
|
||||
use rustc_data_structures::sharded::{self, Sharded};
|
||||
|
@ -976,7 +976,7 @@ impl<K: DepKind> CurrentDepGraph<K> {
|
|||
// Fingerprint::combine() is faster than sending Fingerprint
|
||||
// through the StableHasher (at least as long as StableHasher
|
||||
// is so slow).
|
||||
hash: PackedFingerprint(self.anon_id_seed.combine(hasher.finish())),
|
||||
hash: self.anon_id_seed.combine(hasher.finish()).into(),
|
||||
};
|
||||
|
||||
self.intern_node(target_dep_node, task_deps.reads, Fingerprint::ZERO)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue