Skip to content

Commit

Permalink
span_bug doesn't work well at this stage, use the session directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Feb 23, 2018
1 parent 63168f7 commit 177271f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/lint/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ pub fn check_ast_crate(sess: &Session, krate: &ast::Crate) {
if !sess.opts.actually_rustdoc {
for (_id, lints) in cx.buffered.map {
for early_lint in lints {
span_bug!(early_lint.span, "failed to process buffered lint here");
sess.delay_span_bug(early_lint.span, "failed to process buffered lint here");
}
}
}
Expand Down

0 comments on commit 177271f

Please sign in to comment.