We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 350bbd3 commit fa5c5e0Copy full SHA for fa5c5e0
compiler/rustc_query_system/src/dep_graph/serialized.rs
@@ -225,7 +225,11 @@ impl SerializedDepGraph {
225
226
let index = node_header.index();
227
228
- nodes[index] = node_header.node();
+ let node = &mut nodes[index];
229
+ // Make sure there's no duplicate indices in the dep graph.
230
+ assert!(node_header.node().kind != D::DEP_KIND_NULL && node.kind == D::DEP_KIND_NULL);
231
+ *node = node_header.node();
232
+
233
fingerprints[index] = node_header.fingerprint();
234
235
// If the length of this node's edge list is small, the length is stored in the header.
0 commit comments