We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d173180 commit 3a8448cCopy full SHA for 3a8448c
src/librustc_driver/driver.rs
@@ -296,6 +296,11 @@ pub fn compile_input(
296
(control.after_analysis.callback)(&mut state);
297
});
298
299
+ // Plugins like clippy and rust-semverver stop the analysis early,
300
+ // but want to still return an error if errors during the analysis
301
+ // happened:
302
+ tcx.sess.compile_status()?;
303
+
304
if control.after_analysis.stop == Compilation::Stop {
305
return result.and_then(|_| Err(CompileIncomplete::Stopped));
306
}
0 commit comments