about summary refs log tree commit diff
path: root/compiler/rustc_session/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-19 10:13:51 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-22 08:03:47 +1100
commitc2512a130f398d923229c3dc401be10c357a3b8d (patch)
tree10a920c73d8426a9bd11bfdadc4aa15a5bb4d3af /compiler/rustc_session/src
parent72b172bdf631483d0f802c54c8dc8246f6b4e00e (diff)
downloadrust-c2512a130f398d923229c3dc401be10c357a3b8d.tar.gz
rust-c2512a130f398d923229c3dc401be10c357a3b8d.zip
Inline and remove `Session::compile_status`.
Because it's now simple enough that it doesn't provide much benefit.
Diffstat (limited to 'compiler/rustc_session/src')
-rw-r--r--compiler/rustc_session/src/session.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs
index 48a18fca27e..02c7a0c6371 100644
--- a/compiler/rustc_session/src/session.rs
+++ b/compiler/rustc_session/src/session.rs
@@ -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) {