Remove unused hashing infra.
This commit is contained in:
parent
8a4cbcf220
commit
5d75ca5ef4
3 changed files with 9 additions and 26 deletions
|
@ -631,14 +631,12 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
|||
) -> (Fingerprint, Fingerprint) {
|
||||
self.tcx.with_stable_hashing_context(|mut hcx| {
|
||||
let mut stable_hasher = StableHasher::new();
|
||||
hcx.with_hir_bodies(true, node.def_id(), bodies, |hcx| {
|
||||
hcx.with_hir_bodies(node.def_id(), bodies, |hcx| {
|
||||
node.hash_stable(hcx, &mut stable_hasher)
|
||||
});
|
||||
let hash_including_bodies = stable_hasher.finish();
|
||||
let mut stable_hasher = StableHasher::new();
|
||||
hcx.with_hir_bodies(false, node.def_id(), bodies, |hcx| {
|
||||
node.hash_stable(hcx, &mut stable_hasher)
|
||||
});
|
||||
hcx.without_hir_bodies(|hcx| node.hash_stable(hcx, &mut stable_hasher));
|
||||
let hash_without_bodies = stable_hasher.finish();
|
||||
(hash_including_bodies, hash_without_bodies)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue