Skip to content

Commit 0d0546a

Browse files
committed
Add #[track_caller] to Session::delay_span_bug
This forwards the caller span to `Handler::delay_span_bug`
1 parent 4b0882c commit 0d0546a

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
@@ -432,6 +432,7 @@ impl Session {
432432
}
433433
}
434434
/// Delay a span_bug() call until abort_if_errors()
435+
#[track_caller]
435436
pub fn delay_span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
436437
self.diagnostic().delay_span_bug(sp, msg)
437438
}

0 commit comments

Comments
 (0)