about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src
diff options
context:
space:
mode:
authorBoxy <supbscripter@gmail.com>2022-11-24 11:12:34 +0000
committerBoxy <supbscripter@gmail.com>2022-11-24 11:12:46 +0000
commit72d8879c29570ee18cc3ab2c3e96bfd97221d0bb (patch)
treeaa5db5c888d1e5da5df848167835b6c56214ba5d /compiler/rustc_query_system/src
parent4e0d0d757e2f1b61ec809420b006545a9f8974c0 (diff)
downloadrust-72d8879c29570ee18cc3ab2c3e96bfd97221d0bb.tar.gz
rust-72d8879c29570ee18cc3ab2c3e96bfd97221d0bb.zip
make `error_reported` check for delayed bugs
Diffstat (limited to 'compiler/rustc_query_system/src')
-rw-r--r--compiler/rustc_query_system/src/dep_graph/graph.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_system/src/dep_graph/graph.rs b/compiler/rustc_query_system/src/dep_graph/graph.rs
index d86c0bebdcd..e90afc591b5 100644
--- a/compiler/rustc_query_system/src/dep_graph/graph.rs
+++ b/compiler/rustc_query_system/src/dep_graph/graph.rs
@@ -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")
         }