提交 ee4a7eba 编写于 作者: M Michael Woerister

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

上级 cc34ca1c
......@@ -648,8 +648,15 @@ pub fn try_mark_green<'tcx>(&self,
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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册