1
Fork 0

incr.comp.: Make sanity check in try_mark_green() aware of error conditions.

This commit is contained in:
Michael Woerister 2018-03-16 16:18:14 +01:00
parent cc34ca1c97
commit ee4a7eba45

View file

@ -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 {