@@ -47,13 +47,13 @@ pub(super) struct NodeCollector<'a, 'hir> {
4747fn input_dep_node_and_hash < ' a , I > (
4848 dep_graph : & DepGraph ,
4949 hcx : & mut StableHashingContext < ' a > ,
50- def_node : DepNode ,
50+ dep_node : DepNode ,
5151 input : I ,
5252) -> ( DepNodeIndex , Fingerprint )
5353where
5454 I : HashStable < StableHashingContext < ' a > > ,
5555{
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 ;
5757
5858 let hash = if dep_graph. is_fully_enabled ( ) {
5959 dep_graph. fingerprint_of ( dep_node_index)
6666 ( dep_node_index, hash)
6767}
6868
69- fn hir_dep_nodes < ' a , I > (
69+ fn alloc_hir_dep_nodes < ' a , I > (
7070 dep_graph : & DepGraph ,
7171 hcx : & mut StableHashingContext < ' a > ,
7272 def_path_hash : DefPathHash ,
@@ -121,7 +121,7 @@ impl<'a, 'hir> NodeCollector<'a, 'hir> {
121121 body_ids : _,
122122 } = * krate;
123123
124- hir_dep_nodes (
124+ alloc_hir_dep_nodes (
125125 dep_graph,
126126 & mut hcx,
127127 root_mod_def_path_hash,
@@ -172,10 +172,8 @@ impl<'a, 'hir> NodeCollector<'a, 'hir> {
172172 let node_hashes = self
173173 . hir_body_nodes
174174 . 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) )
179177 } ) ;
180178
181179 let mut upstream_crates: Vec < _ > = cstore. crates_untracked ( ) . iter ( ) . map ( |& cnum| {
@@ -296,7 +294,7 @@ impl<'a, 'hir> NodeCollector<'a, 'hir> {
296294
297295 let def_path_hash = self . definitions . def_path_hash ( dep_node_owner) ;
298296
299- let ( signature_dep_index, full_dep_index) = hir_dep_nodes (
297+ let ( signature_dep_index, full_dep_index) = alloc_hir_dep_nodes (
300298 self . dep_graph ,
301299 & mut self . hcx ,
302300 def_path_hash,
0 commit comments