diff options
| author | nils <48135649+Nilstrieb@users.noreply.github.com> | 2022-09-30 14:11:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-30 14:11:18 +0200 |
| commit | 477846f491284973f1f3f8b4bf9c6d9deb6ad98e (patch) | |
| tree | f8a52982dfe90c081a9e905f0dd286a4a589ebe7 | |
| parent | 8a96884981c97c4c35e304004290271308a67637 (diff) | |
| download | rust-477846f491284973f1f3f8b4bf9c6d9deb6ad98e.tar.gz rust-477846f491284973f1f3f8b4bf9c6d9deb6ad98e.zip | |
Add comment explaining why we flush delayed bugs before codegen
| -rw-r--r-- | compiler/rustc_interface/src/queries.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/queries.rs b/compiler/rustc_interface/src/queries.rs index 60ed48d8988..05775f37647 100644 --- a/compiler/rustc_interface/src/queries.rs +++ b/compiler/rustc_interface/src/queries.rs @@ -246,6 +246,8 @@ impl<'tcx> Queries<'tcx> { // Don't do code generation if there were any errors self.session().compile_status()?; + // If we have any delayed bugs, for example beacuse we created TyKind::Error earlier, + // it's likey that codegen will only cause more ICEs, obscuring the original problem self.session().diagnostic().flush_delayed(); // Hook for UI tests. |
