Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
incr.comp.: Make sanity check in try_mark_green() aware of error cond…
…itions.
  • Loading branch information
michaelwoerister committed Mar 16, 2018
1 parent cc34ca1 commit ee4a7eb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/librustc/dep_graph/graph.rs
Expand Up @@ -648,8 +648,15 @@ impl DepGraph {
return None
}
None => {
bug!("try_mark_green() - Forcing the DepNode \
should have set its color")
if !tcx.sess.has_errors() {
bug!("try_mark_green() - Forcing the DepNode \
should have set its color")
} else {
// If the query we just forced has resulted
// in some kind of compilation error, we
// don't expect that the corresponding
// dep-node color has been updated.
}
}
}
} else {
Expand Down

0 comments on commit ee4a7eb

Please sign in to comment.