1
Fork 0

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

@ -317,14 +317,6 @@ impl Session {
err
}
pub fn compile_status(&self) -> Result<(), ErrorGuaranteed> {
if let Some(reported) = self.dcx().has_errors() {
Err(reported)
} else {
Ok(())
}
}
/// Record the fact that we called `trimmed_def_paths`, and do some
/// checking about whether its cost was justified.
pub fn record_trimmed_def_paths(&self) {