We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f520900 commit 02bace8Copy full SHA for 02bace8
compiler/rustc_query_system/src/dep_graph/graph.rs
@@ -1384,7 +1384,9 @@ impl DepNodeColorMap {
1384
1385
#[inline]
1386
pub(super) fn insert_red(&self, index: SerializedDepNodeIndex) {
1387
- self.values[index].store(COMPRESSED_RED, Ordering::Release)
+ let value = self.values[index].swap(COMPRESSED_RED, Ordering::Release);
1388
+ // Sanity check for duplicate nodes
1389
+ assert_eq!(value, COMPRESSED_UNKNOWN, "trying to encode a dep node twice");
1390
}
1391
1392
0 commit comments