Add #[track_caller] to Session::delay_span_bug
This forwards the caller span to `Handler::delay_span_bug`
This commit is contained in:
parent
4b0882cfaa
commit
0d0546a236
@ -432,6 +432,7 @@ pub fn opt_span_warn<S: Into<MultiSpan>>(&self, opt_sp: Option<S>, msg: &str) {
|
||||
}
|
||||
}
|
||||
/// 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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user