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 f66622c + a262ec8 commit d0926c0Copy full SHA for d0926c0
compiler/rustc_middle/src/dep_graph/graph.rs
@@ -1447,7 +1447,7 @@ impl DepNodeColorMap {
1447
let value = self.values[index].load(Ordering::Acquire);
1448
// Green is by far the most common case. Check for that first so we can succeed with a
1449
// single comparison.
1450
- if value < COMPRESSED_RED {
+ if value <= DepNodeIndex::MAX_AS_U32 {
1451
DepNodeColor::Green(DepNodeIndex::from_u32(value))
1452
} else if value == COMPRESSED_RED {
1453
DepNodeColor::Red
0 commit comments