We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
track_errors
1 parent 95a267b commit 3fca95aCopy full SHA for 3fca95a
compiler/rustc_session/src/session.rs
@@ -562,7 +562,10 @@ impl Session {
562
if self.err_count() == old_count {
563
Ok(result)
564
} else {
565
- Err(ErrorGuaranteed::unchecked_claim_error_was_emitted())
+ Err(self.delay_span_bug(
566
+ rustc_span::DUMMY_SP,
567
+ "`self.err_count()` changed but an error was not emitted",
568
+ ))
569
}
570
571
#[allow(rustc::untranslatable_diagnostic)]
0 commit comments