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
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue