Skip to content

Commit c7b5fb5

Browse files
committed
Also check in case it tries to mark red node as green
1 parent 02bace8 commit c7b5fb5

File tree

1 file changed

+4
-1
lines changed
  • compiler/rustc_query_system/src/dep_graph

1 file changed

+4
-1
lines changed

compiler/rustc_query_system/src/dep_graph/graph.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,10 @@ impl DepNodeColorMap {
13631363
Ordering::Relaxed,
13641364
) {
13651365
Ok(_) => Ok(()),
1366-
Err(v) => Err(DepNodeIndex::from_u32(v)),
1366+
Err(v) => Err({
1367+
assert_ne!(v, COMPRESSED_RED, "tried to mark a red node as green");
1368+
DepNodeIndex::from_u32(v)
1369+
}),
13671370
}
13681371
}
13691372

0 commit comments

Comments
 (0)