We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68fd771 commit 2736a2aCopy full SHA for 2736a2a
compiler/rustc_query_system/src/dep_graph/serialized.rs
@@ -253,13 +253,16 @@ impl SerializedDepGraph {
253
254
for (idx, node) in nodes.iter_enumerated() {
255
if index[node.kind.as_usize()].insert(node.hash, idx).is_some() {
256
- let name = deps.name(node.kind);
257
- panic!(
+ // Side effect nodes can have duplicates
+ if node.kind != D::DEP_KIND_SIDE_EFFECT {
258
+ let name = deps.name(node.kind);
259
+ panic!(
260
"Error: A dep graph node ({name}) does not have an unique index. \
261
Running a clean build on a nightly compiler with `-Z incremental-verify-ich` \
262
can help narrow down the issue for reporting. A clean build may also work around the issue.\n
263
DepNode: {node:?}"
264
)
265
+ }
266
}
267
268
0 commit comments