Skip to content

Commit

Permalink
Add #[track_caller] to Session::delay_span_bug
Browse files Browse the repository at this point in the history
This forwards the caller span to `Handler::delay_span_bug`
  • Loading branch information
Aaron1011 committed Aug 6, 2020
1 parent 4b0882c commit 0d0546a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_session/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ impl Session {
}
}
/// Delay a span_bug() call until abort_if_errors()
#[track_caller]
pub fn delay_span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
self.diagnostic().delay_span_bug(sp, msg)
}
Expand Down

0 comments on commit 0d0546a

Please sign in to comment.