about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-02-08 14:44:52 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-02-08 14:44:52 +0000
commit6af2d3cc90f7625ad3db4687a93abebfa9e8396a (patch)
tree3e3eefd98c5fd7ef7af56ef9be9a2ce21d140a15 /compiler/rustc_errors/src
parent1280928a99ad3ef2c5735b42dc8852456ae3b974 (diff)
downloadrust-6af2d3cc90f7625ad3db4687a93abebfa9e8396a.tar.gz
rust-6af2d3cc90f7625ad3db4687a93abebfa9e8396a.zip
Fix `span_bug!` backtraces
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 9c5a91adfa0..b6f8dab7e1a 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -847,6 +847,7 @@ impl DiagCtxt {
         self.struct_span_warn(span, msg).emit()
     }
 
+    #[track_caller]
     pub fn span_bug(&self, span: impl Into<MultiSpan>, msg: impl Into<DiagnosticMessage>) -> ! {
         self.struct_span_bug(span, msg).emit()
     }