about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-02-23 00:10:37 -0800
committerManish Goregaokar <manishsmail@gmail.com>2018-02-23 08:24:49 -0800
commit177271f91401852841c647ae01b4072253d69234 (patch)
tree151aaa3e118a4a53e5f7503021a79b8d9d1e465a
parent63168f72756da88c7488865160c7dfbd446bb0aa (diff)
downloadrust-177271f91401852841c647ae01b4072253d69234.tar.gz
rust-177271f91401852841c647ae01b4072253d69234.zip
span_bug doesn't work well at this stage, use the session directly
-rw-r--r--src/librustc/lint/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/lint/context.rs b/src/librustc/lint/context.rs
index a9c023d1430..bfd2034dd6c 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");
             }
         }
     }