@@ -47,13 +47,13 @@ pub(super) struct NodeCollector<'a, 'hir> {
47
47
fn input_dep_node_and_hash < ' a , I > (
48
48
dep_graph : & DepGraph ,
49
49
hcx : & mut StableHashingContext < ' a > ,
50
- def_node : DepNode ,
50
+ dep_node : DepNode ,
51
51
input : I ,
52
52
) -> ( DepNodeIndex , Fingerprint )
53
53
where
54
54
I : HashStable < StableHashingContext < ' a > > ,
55
55
{
56
- let dep_node_index = dep_graph. input_task ( def_node , & mut * hcx, & input) . 1 ;
56
+ let dep_node_index = dep_graph. input_task ( dep_node , & mut * hcx, & input) . 1 ;
57
57
58
58
let hash = if dep_graph. is_fully_enabled ( ) {
59
59
dep_graph. fingerprint_of ( dep_node_index)
66
66
( dep_node_index, hash)
67
67
}
68
68
69
- fn hir_dep_nodes < ' a , I > (
69
+ fn alloc_hir_dep_nodes < ' a , I > (
70
70
dep_graph : & DepGraph ,
71
71
hcx : & mut StableHashingContext < ' a > ,
72
72
def_path_hash : DefPathHash ,
@@ -121,7 +121,7 @@ impl<'a, 'hir> NodeCollector<'a, 'hir> {
121
121
body_ids : _,
122
122
} = * krate;
123
123
124
- hir_dep_nodes (
124
+ alloc_hir_dep_nodes (
125
125
dep_graph,
126
126
& mut hcx,
127
127
root_mod_def_path_hash,
@@ -172,10 +172,8 @@ impl<'a, 'hir> NodeCollector<'a, 'hir> {
172
172
let node_hashes = self
173
173
. hir_body_nodes
174
174
. iter ( )
175
- . fold ( Fingerprint :: ZERO , |fingerprint, & ( def_path_hash, hash) | {
176
- fingerprint. combine (
177
- def_path_hash. 0 . combine ( hash)
178
- )
175
+ . fold ( Fingerprint :: ZERO , |combined_fingerprint, & ( def_path_hash, fingerprint) | {
176
+ combined_fingerprint. combine ( def_path_hash. 0 . combine ( fingerprint) )
179
177
} ) ;
180
178
181
179
let mut upstream_crates: Vec < _ > = cstore. crates_untracked ( ) . iter ( ) . map ( |& cnum| {
@@ -296,7 +294,7 @@ impl<'a, 'hir> NodeCollector<'a, 'hir> {
296
294
297
295
let def_path_hash = self . definitions . def_path_hash ( dep_node_owner) ;
298
296
299
- let ( signature_dep_index, full_dep_index) = hir_dep_nodes (
297
+ let ( signature_dep_index, full_dep_index) = alloc_hir_dep_nodes (
300
298
self . dep_graph ,
301
299
& mut self . hcx ,
302
300
def_path_hash,
0 commit comments