Allow duplicates for side effect nodes
This commit is contained in:
parent
68fd771bc1
commit
2736a2a84f
1 changed files with 5 additions and 2 deletions
|
@ -253,13 +253,16 @@ impl SerializedDepGraph {
|
|||
|
||||
for (idx, node) in nodes.iter_enumerated() {
|
||||
if index[node.kind.as_usize()].insert(node.hash, idx).is_some() {
|
||||
let name = deps.name(node.kind);
|
||||
panic!(
|
||||
// Side effect nodes can have duplicates
|
||||
if node.kind != D::DEP_KIND_SIDE_EFFECT {
|
||||
let name = deps.name(node.kind);
|
||||
panic!(
|
||||
"Error: A dep graph node ({name}) does not have an unique index. \
|
||||
Running a clean build on a nightly compiler with `-Z incremental-verify-ich` \
|
||||
can help narrow down the issue for reporting. A clean build may also work around the issue.\n
|
||||
DepNode: {node:?}"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue