Remove return value from emit_stashed_diagnostics
.
It's never used.
This commit is contained in:
parent
0d531351e8
commit
8d1c20a539
2 changed files with 4 additions and 7 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