Skip to content

Commit

Permalink
Rollup merge of rust-lang#75223 - Aaron1011:feature/session-track-cal…
Browse files Browse the repository at this point in the history
…ler, r=eddyb

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

This forwards the caller span to `Handler::delay_span_bug`
  • Loading branch information
Dylan-DPC authored Aug 16, 2020
2 parents f33f111 + 0d0546a commit 60fc66b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_session/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 60fc66b

Please sign in to comment.