Skip to content

Commit

Permalink
Remove Session::span_err_or_warn.
Browse files Browse the repository at this point in the history
It's unused.
  • Loading branch information
nnethercote committed May 16, 2023
1 parent ce5919f commit 87a2bc0
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions compiler/rustc_session/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 87a2bc0

Please sign in to comment.