Skip to content

Commit

Permalink
Remove unused opt_span_warn function
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed May 9, 2021
1 parent ebbc949 commit f25aa57
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions compiler/rustc_session/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,12 +492,6 @@ impl Session {
pub fn warn(&self, msg: &str) {
self.diagnostic().warn(msg)
}
pub fn opt_span_warn<S: Into<MultiSpan>>(&self, opt_sp: Option<S>, msg: &str) {
match opt_sp {
Some(sp) => self.span_warn(sp, msg),
None => self.warn(msg),
}
}
/// Delay a span_bug() call until abort_if_errors()
#[track_caller]
pub fn delay_span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
Expand Down

0 comments on commit f25aa57

Please sign in to comment.