span_bug doesn't work well at this stage, use the session directly

This commit is contained in:
Manish Goregaokar 2018-02-23 00:10:37 -08:00
parent 63168f7275
commit 177271f914

View file

@ -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");
}
}
}