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.
2 parents 5944b12 + 58dd2e5 commit 49b2c82Copy full SHA for 49b2c82
1 file changed
compiler/rustc_query_system/src/dep_graph/graph.rs
@@ -1396,7 +1396,7 @@ impl DepNodeColorMap {
1396
let value = self.values[index].load(Ordering::Acquire);
1397
// Green is by far the most common case. Check for that first so we can succeed with a
1398
// single comparison.
1399
- if value < COMPRESSED_RED {
+ if value <= DepNodeIndex::MAX_AS_U32 {
1400
DepNodeColor::Green(DepNodeIndex::from_u32(value))
1401
} else if value == COMPRESSED_RED {
1402
DepNodeColor::Red
0 commit comments