incr.comp.: Make sanity check in try_mark_green() aware of error conditions.
This commit is contained in:
parent
cc34ca1c97
commit
ee4a7eba45
1 changed files with 9 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue