We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ac13bd commit c008bb0Copy full SHA for c008bb0
compiler/rustc_driver/src/lib.rs
@@ -410,10 +410,6 @@ fn run_compiler(
410
sess.code_stats.print_type_sizes();
411
}
412
413
- if sess.diagnostic().has_errors_or_lint_errors() {
414
- return Err(ErrorReported);
415
- }
416
-
417
let linker = queries.linker()?;
418
Ok(Some(linker))
419
})?;
compiler/rustc_session/src/session.rs
@@ -411,7 +411,7 @@ impl Session {
self.diagnostic().abort_if_errors();
pub fn compile_status(&self) -> Result<(), ErrorReported> {
- if self.has_errors() {
+ if self.diagnostic().has_errors_or_lint_errors() {
self.diagnostic().emit_stashed_diagnostics();
Err(ErrorReported)
} else {
0 commit comments