Skip to content

Commit f25aa57

Browse files
committed
Remove unused opt_span_warn function
1 parent ebbc949 commit f25aa57

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Diff for: compiler/rustc_session/src/session.rs

-6
Original file line numberDiff line numberDiff line change
@@ -492,12 +492,6 @@ impl Session {
492492
pub fn warn(&self, msg: &str) {
493493
self.diagnostic().warn(msg)
494494
}
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-
}
501495
/// Delay a span_bug() call until abort_if_errors()
502496
#[track_caller]
503497
pub fn delay_span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {

0 commit comments

Comments
 (0)