Inline and remove Session::compile_status
.
Because it's now simple enough that it doesn't provide much benefit.
This commit is contained in:
parent
72b172bdf6
commit
c2512a130f
5 changed files with 19 additions and 16 deletions
|
@ -261,7 +261,9 @@ impl Linker {
|
|||
let (codegen_results, work_products) =
|
||||
codegen_backend.join_codegen(self.ongoing_codegen, sess, &self.output_filenames);
|
||||
|
||||
sess.compile_status()?;
|
||||
if let Some(guar) = sess.dcx().has_errors() {
|
||||
return Err(guar);
|
||||
}
|
||||
|
||||
sess.time("serialize_work_products", || {
|
||||
rustc_incremental::save_work_product_index(sess, &self.dep_graph, work_products)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue