Skip to content

Commit 177271f

Browse files
committed
span_bug doesn't work well at this stage, use the session directly
1 parent 63168f7 commit 177271f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/lint/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ pub fn check_ast_crate(sess: &Session, krate: &ast::Crate) {
10841084
if !sess.opts.actually_rustdoc {
10851085
for (_id, lints) in cx.buffered.map {
10861086
for early_lint in lints {
1087-
span_bug!(early_lint.span, "failed to process buffered lint here");
1087+
sess.delay_span_bug(early_lint.span, "failed to process buffered lint here");
10881088
}
10891089
}
10901090
}

0 commit comments

Comments
 (0)