Make the fast path faster.
This commit is contained in:
parent
91444af87a
commit
eb82187b13
2 changed files with 15 additions and 14 deletions
|
@ -792,7 +792,7 @@ impl<K: DepKind> DepGraph<K> {
|
|||
}
|
||||
}
|
||||
|
||||
fn next_virtual_depnode_index(&self) -> DepNodeIndex {
|
||||
pub(crate) fn next_virtual_depnode_index(&self) -> DepNodeIndex {
|
||||
let index = self.virtual_dep_node_index.fetch_add(1, Relaxed);
|
||||
DepNodeIndex::from_u32(index)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue