We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Session::span_err_or_warn
1 parent ce5919f commit 87a2bc0Copy full SHA for 87a2bc0
compiler/rustc_session/src/session.rs
@@ -490,20 +490,6 @@ impl Session {
490
}
491
#[rustc_lint_diagnostics]
492
#[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]
507
pub fn span_err<S: Into<MultiSpan>>(
508
&self,
509
sp: S,
0 commit comments