Rollup merge of #75223 - Aaron1011:feature/session-track-caller, r=eddyb

Add #[track_caller] to `Session::delay_span_bug`

This forwards the caller span to `Handler::delay_span_bug`
This commit is contained in:
Tyler Mandry 2020-08-16 14:59:29 -07:00 committed by GitHub
commit 8a33c98d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -437,6 +437,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)
}