mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
track_errors
use a delay_span_bug
This commit is contained in:
parent
95a267bb34
commit
3fca95a597
@ -562,7 +562,10 @@ impl Session {
|
||||
if self.err_count() == old_count {
|
||||
Ok(result)
|
||||
} else {
|
||||
Err(ErrorGuaranteed::unchecked_claim_error_was_emitted())
|
||||
Err(self.delay_span_bug(
|
||||
rustc_span::DUMMY_SP,
|
||||
"`self.err_count()` changed but an error was not emitted",
|
||||
))
|
||||
}
|
||||
}
|
||||
#[allow(rustc::untranslatable_diagnostic)]
|
||||
|
Loading…
Reference in New Issue
Block a user