File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
compiler/rustc_query_system/src/dep_graph Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -253,13 +253,16 @@ impl SerializedDepGraph {
253
253
254
254
for ( idx, node) in nodes. iter_enumerated ( ) {
255
255
if index[ node. kind . as_usize ( ) ] . insert ( node. hash , idx) . is_some ( ) {
256
- let name = deps. name ( node. kind ) ;
257
- panic ! (
256
+ // Side effect nodes can have duplicates
257
+ if node. kind != D :: DEP_KIND_SIDE_EFFECT {
258
+ let name = deps. name ( node. kind ) ;
259
+ panic ! (
258
260
"Error: A dep graph node ({name}) does not have an unique index. \
259
261
Running a clean build on a nightly compiler with `-Z incremental-verify-ich` \
260
262
can help narrow down the issue for reporting. A clean build may also work around the issue.\n
261
263
DepNode: {node:?}"
262
264
)
265
+ }
263
266
}
264
267
}
265
268
You can’t perform that action at this time.
0 commit comments