From 177271f91401852841c647ae01b4072253d69234 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Fri, 23 Feb 2018 00:10:37 -0800 Subject: [PATCH] span_bug doesn't work well at this stage, use the session directly --- src/librustc/lint/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/lint/context.rs b/src/librustc/lint/context.rs index a9c023d14309d..bfd2034dd6cfe 100644 --- a/src/librustc/lint/context.rs +++ b/src/librustc/lint/context.rs @@ -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"); } } }