We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaf5e21 commit 421b61dCopy full SHA for 421b61d
compiler/rustc_query_system/src/dep_graph/serialized.rs
@@ -252,7 +252,14 @@ impl SerializedDepGraph {
252
.collect();
253
254
for (idx, node) in nodes.iter_enumerated() {
255
- index[node.kind.as_usize()].insert(node.hash, idx);
+ if index[node.kind.as_usize()].insert(node.hash, idx).is_some() {
256
+ panic!(
257
+ "Error: A dep graph node does not have an unique index. \
258
+ Running a clean build on a nightly compiler with `-Z incremental-verify-ich` \
259
+ can help narrow down the issue for reporting. A clean build may also work around the issue.\n
260
+ DepNode: {node:?}"
261
+ )
262
+ }
263
}
264
265
Arc::new(SerializedDepGraph {
0 commit comments