Add comment explaining why we flush delayed bugs before codegen
This commit is contained in:
parent
8a96884981
commit
477846f491
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue