We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
opt_span_warn
1 parent ebbc949 commit f25aa57Copy full SHA for f25aa57
compiler/rustc_session/src/session.rs
@@ -492,12 +492,6 @@ impl Session {
492
pub fn warn(&self, msg: &str) {
493
self.diagnostic().warn(msg)
494
}
495
- pub fn opt_span_warn<S: Into<MultiSpan>>(&self, opt_sp: Option<S>, msg: &str) {
496
- match opt_sp {
497
- Some(sp) => self.span_warn(sp, msg),
498
- None => self.warn(msg),
499
- }
500
501
/// Delay a span_bug() call until abort_if_errors()
502
#[track_caller]
503
pub fn delay_span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
0 commit comments