@@ -140,7 +140,7 @@ impl<D: Deps> DepGraph<D> {
140
140
let colors = DepNodeColorMap :: new ( prev_graph_node_count) ;
141
141
142
142
// Instantiate a dependy-less node only once for anonymous queries.
143
- let _green_node_index = current. intern_new_node (
143
+ let _green_node_index = current. alloc_new_node (
144
144
DepNode { kind : D :: DEP_KIND_NULL , hash : current. anon_id_seed . into ( ) } ,
145
145
EdgesVec :: new ( ) ,
146
146
Fingerprint :: ZERO ,
@@ -447,7 +447,7 @@ impl<D: Deps> DepGraphData<D> {
447
447
// memory impact of this `anon_node_to_index` map remains tolerable, and helps
448
448
// us avoid useless growth of the graph with almost-equivalent nodes.
449
449
self . current . anon_node_to_index . get_or_insert_with ( target_dep_node, || {
450
- self . current . intern_new_node ( target_dep_node, task_deps, Fingerprint :: ZERO )
450
+ self . current . alloc_new_node ( target_dep_node, task_deps, Fingerprint :: ZERO )
451
451
} )
452
452
}
453
453
} ;
@@ -1219,7 +1219,7 @@ impl<D: Deps> CurrentDepGraph<D> {
1219
1219
/// Writes the node to the current dep-graph and allocates a `DepNodeIndex` for it.
1220
1220
/// Assumes that this is a node that has no equivalent in the previous dep-graph.
1221
1221
#[ inline( always) ]
1222
- fn intern_new_node (
1222
+ fn alloc_new_node (
1223
1223
& self ,
1224
1224
key : DepNode ,
1225
1225
edges : EdgesVec ,
@@ -1298,7 +1298,7 @@ impl<D: Deps> CurrentDepGraph<D> {
1298
1298
let fingerprint = fingerprint. unwrap_or ( Fingerprint :: ZERO ) ;
1299
1299
1300
1300
// This is a new node: it didn't exist in the previous compilation session.
1301
- let dep_node_index = self . intern_new_node ( key, edges, fingerprint) ;
1301
+ let dep_node_index = self . alloc_new_node ( key, edges, fingerprint) ;
1302
1302
1303
1303
( dep_node_index, None )
1304
1304
}
0 commit comments