Inline and remove Session::compile_status.

Because it's now simple enough that it doesn't provide much benefit.
This commit is contained in:
Nicholas Nethercote 2024-02-19 10:13:51 +11:00
parent 72b172bdf6
commit c2512a130f
5 changed files with 19 additions and 16 deletions

View file

@ -487,7 +487,9 @@ fn collate_raw_dylibs<'a, 'b>(
}
}
}
sess.compile_status()?;
if let Some(guar) = sess.dcx().has_errors() {
return Err(guar);
}
Ok(dylib_table
.into_iter()
.map(|(name, imports)| {