We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7daac0 commit 59d74d7Copy full SHA for 59d74d7
compiler/rustc_query_system/src/dep_graph/query.rs
@@ -28,10 +28,9 @@ impl DepGraphQuery {
28
self.indices.insert(node, source);
29
30
for &target in edges.iter() {
31
- let target = self.dep_index_to_index[target];
32
// We may miss the edges that are pushed while the `DepGraphQuery` is being accessed.
33
// Skip them to issues.
34
- if let Some(target) = target {
+ if let Some(&Some(target)) = self.dep_index_to_index.get(target) {
35
self.graph.add_edge(source, target, ());
36
}
37
0 commit comments