diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-05-04 12:51:29 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-05-16 16:59:29 +1000 |
| commit | 87a2bc027c4cfd126bc95f864d229d5cb5f7f00c (patch) | |
| tree | ff2dacc3a3f92d8ec86f0d059980bd30a9a565d8 | |
| parent | ce5919fcef67103098219e1868f741e56fc90963 (diff) | |
| download | rust-87a2bc027c4cfd126bc95f864d229d5cb5f7f00c.tar.gz rust-87a2bc027c4cfd126bc95f864d229d5cb5f7f00c.zip | |
Remove `Session::span_err_or_warn`.
It's unused.
| -rw-r--r-- | compiler/rustc_session/src/session.rs | 14 |
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, |
