Rollup merge of #120735 - nnethercote:rm-some-unchecked_claims, r=oli-obk
Remove some `unchecked_claim_error_was_emitted` calls We want to drive the number of these calls down as much as possible. This PR gets rid of a bunch of them. r? ``@oli-obk``
This commit is contained in:
commit
cb040f5ded
8 changed files with 102 additions and 153 deletions
|
@ -315,7 +315,7 @@ impl Session {
|
|||
pub fn compile_status(&self) -> Result<(), ErrorGuaranteed> {
|
||||
// We must include lint errors here.
|
||||
if let Some(reported) = self.dcx().has_errors_or_lint_errors() {
|
||||
let _ = self.dcx().emit_stashed_diagnostics();
|
||||
self.dcx().emit_stashed_diagnostics();
|
||||
Err(reported)
|
||||
} else {
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue