@@ -141,7 +141,7 @@ impl<D: Deps> DepGraph<D> {
141
141
let colors = DepNodeColorMap :: new ( prev_graph_node_count) ;
142
142
143
143
// Instantiate a dependy-less node only once for anonymous queries.
144
- let _green_node_index = current. intern_new_node (
144
+ let _green_node_index = current. alloc_new_node (
145
145
DepNode { kind : D :: DEP_KIND_NULL , hash : current. anon_id_seed . into ( ) } ,
146
146
EdgesVec :: new ( ) ,
147
147
Fingerprint :: ZERO ,
@@ -449,7 +449,7 @@ impl<D: Deps> DepGraphData<D> {
449
449
// memory impact of this `anon_node_to_index` map remains tolerable, and helps
450
450
// us avoid useless growth of the graph with almost-equivalent nodes.
451
451
self . current . anon_node_to_index . get_or_insert_with ( target_dep_node, || {
452
- self . current . intern_new_node ( target_dep_node, task_deps, Fingerprint :: ZERO )
452
+ self . current . alloc_new_node ( target_dep_node, task_deps, Fingerprint :: ZERO )
453
453
} )
454
454
}
455
455
} ;
@@ -1181,7 +1181,7 @@ impl<D: Deps> CurrentDepGraph<D> {
1181
1181
/// Writes the node to the current dep-graph and allocates a `DepNodeIndex` for it.
1182
1182
/// Assumes that this is a node that has no equivalent in the previous dep-graph.
1183
1183
#[ inline( always) ]
1184
- fn intern_new_node (
1184
+ fn alloc_new_node (
1185
1185
& self ,
1186
1186
key : DepNode ,
1187
1187
edges : EdgesVec ,
@@ -1260,7 +1260,7 @@ impl<D: Deps> CurrentDepGraph<D> {
1260
1260
let fingerprint = fingerprint. unwrap_or ( Fingerprint :: ZERO ) ;
1261
1261
1262
1262
// This is a new node: it didn't exist in the previous compilation session.
1263
- let dep_node_index = self . intern_new_node ( key, edges, fingerprint) ;
1263
+ let dep_node_index = self . alloc_new_node ( key, edges, fingerprint) ;
1264
1264
1265
1265
( dep_node_index, None )
1266
1266
}
0 commit comments