make error_reported check for delayed bugs

This commit is contained in:
Boxy 2022-11-24 11:12:34 +00:00
parent 4e0d0d757e
commit 72d8879c29
8 changed files with 44 additions and 10 deletions

View file

@ -667,7 +667,7 @@ impl<K: DepKind> DepGraph<K> {
None => {}
}
if !qcx.dep_context().sess().has_errors_or_delayed_span_bugs() {
if let None = qcx.dep_context().sess().has_errors_or_delayed_span_bugs() {
panic!("try_mark_previous_green() - Forcing the DepNode should have set its color")
}