about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-05-04 12:51:29 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-05-16 16:59:29 +1000
commit87a2bc027c4cfd126bc95f864d229d5cb5f7f00c (patch)
treeff2dacc3a3f92d8ec86f0d059980bd30a9a565d8
parentce5919fcef67103098219e1868f741e56fc90963 (diff)
downloadrust-87a2bc027c4cfd126bc95f864d229d5cb5f7f00c.tar.gz
rust-87a2bc027c4cfd126bc95f864d229d5cb5f7f00c.zip
Remove `Session::span_err_or_warn`.
It's unused.
-rw-r--r--compiler/rustc_session/src/session.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs
index a988d7f28e6..151325fcb08 100644
--- a/compiler/rustc_session/src/session.rs
+++ b/compiler/rustc_session/src/session.rs
@@ -490,20 +490,6 @@ impl Session {
     }
     #[rustc_lint_diagnostics]
     #[track_caller]
-    pub fn span_err_or_warn<S: Into<MultiSpan>>(
-        &self,
-        is_warning: bool,
-        sp: S,
-        msg: impl Into<DiagnosticMessage>,
-    ) {
-        if is_warning {
-            self.span_warn(sp, msg);
-        } else {
-            self.span_err(sp, msg);
-        }
-    }
-    #[rustc_lint_diagnostics]
-    #[track_caller]
     pub fn span_err<S: Into<MultiSpan>>(
         &self,
         sp: S,