Skip to content

Commit 87a2bc0

Browse files
committed
Remove Session::span_err_or_warn.
It's unused.
1 parent ce5919f commit 87a2bc0

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

compiler/rustc_session/src/session.rs

-14
Original file line numberDiff line numberDiff line change
@@ -490,20 +490,6 @@ impl Session {
490490
}
491491
#[rustc_lint_diagnostics]
492492
#[track_caller]
493-
pub fn span_err_or_warn<S: Into<MultiSpan>>(
494-
&self,
495-
is_warning: bool,
496-
sp: S,
497-
msg: impl Into<DiagnosticMessage>,
498-
) {
499-
if is_warning {
500-
self.span_warn(sp, msg);
501-
} else {
502-
self.span_err(sp, msg);
503-
}
504-
}
505-
#[rustc_lint_diagnostics]
506-
#[track_caller]
507493
pub fn span_err<S: Into<MultiSpan>>(
508494
&self,
509495
sp: S,

0 commit comments

Comments
 (0)