We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ensure
1 parent f03af1b commit d0cb4d0Copy full SHA for d0cb4d0
src/librustc/ty/maps/plumbing.rs
@@ -363,6 +363,12 @@ macro_rules! define_maps {
363
tcx.dep_graph.read_index(dep_node_index);
364
}
365
Some(DepNodeColor::Red) => {
366
+ // A DepNodeColor::Red DepNode means that this query was executed
367
+ // before. We can not call `dep_graph.read()` here as we don't have
368
+ // the DepNodeIndex. Instead, We call the query again to issue the
369
+ // appropriate `dep_graph.read()` call. The performance cost this
370
+ // introduces should be negligible as we'll immediately hit the
371
+ // in-memory cache.
372
let _ = tcx.$name(key);
373
374
None => {
0 commit comments