diff options
| author | Boxy <supbscripter@gmail.com> | 2022-11-24 11:12:34 +0000 |
|---|---|---|
| committer | Boxy <supbscripter@gmail.com> | 2022-11-24 11:12:46 +0000 |
| commit | 72d8879c29570ee18cc3ab2c3e96bfd97221d0bb (patch) | |
| tree | aa5db5c888d1e5da5df848167835b6c56214ba5d /compiler/rustc_query_system/src | |
| parent | 4e0d0d757e2f1b61ec809420b006545a9f8974c0 (diff) | |
| download | rust-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.rs | 2 |
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") } |
