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 cc34ca1 commit ee4a7ebCopy full SHA for ee4a7eb
src/librustc/dep_graph/graph.rs
@@ -648,8 +648,15 @@ impl DepGraph {
648
return None
649
}
650
None => {
651
- bug!("try_mark_green() - Forcing the DepNode \
652
- should have set its color")
+ if !tcx.sess.has_errors() {
+ bug!("try_mark_green() - Forcing the DepNode \
653
+ should have set its color")
654
+ } else {
655
+ // If the query we just forced has resulted
656
+ // in some kind of compilation error, we
657
+ // don't expect that the corresponding
658
+ // dep-node color has been updated.
659
+ }
660
661
662
} else {
0 commit comments