Skip to content

Commit 8a33c98

Browse files
authored
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`
2 parents 76b2fce + 0d0546a commit 8a33c98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_session/session.rs

+1
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ impl Session {
437437
}
438438
}
439439
/// Delay a span_bug() call until abort_if_errors()
440+
#[track_caller]
440441
pub fn delay_span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
441442
self.diagnostic().delay_span_bug(sp, msg)
442443
}

0 commit comments

Comments
 (0)