Address review.

This commit is contained in:
Camille GILLOT
2021-03-18 19:26:08 +01:00
parent 65a8681a17
commit fe89f3236c
5 changed files with 45 additions and 55 deletions

View File

@@ -32,7 +32,8 @@ impl<K: DepKind> DepGraphQuery<K> {
for &target in edges.iter() {
let target = self.dep_index_to_index[target];
// Skip missing edges.
// We may miss the edges that are pushed while the `DepGraphQuery` is being accessed.
// Skip them to issues.
if let Some(target) = target {
self.graph.add_edge(source, target, ());
}