Add #[track_caller] to Session::delay_span_bug

This forwards the caller span to `Handler::delay_span_bug`
This commit is contained in:
Aaron Hill 2020-08-06 11:34:13 -04:00
parent 4b0882cfaa
commit 0d0546a236
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -432,6 +432,7 @@ impl Session {
} }
} }
/// Delay a span_bug() call until abort_if_errors() /// Delay a span_bug() call until abort_if_errors()
#[track_caller]
pub fn delay_span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) { pub fn delay_span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
self.diagnostic().delay_span_bug(sp, msg) self.diagnostic().delay_span_bug(sp, msg)
} }