about summary refs log tree commit diff
path: root/compiler/rustc_expand/src
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-07-20 09:51:47 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-07-20 09:51:47 +0000
commitd97ec97b9486fe5798938e6842bda2385e906cbc (patch)
tree4a45f9adb1a185303a55d3f1c89f794e66f905c2 /compiler/rustc_expand/src
parentc67cb3e577bdd4de640eb11d96cd5ef5afe0eb0b (diff)
downloadrust-d97ec97b9486fe5798938e6842bda2385e906cbc.tar.gz
rust-d97ec97b9486fe5798938e6842bda2385e906cbc.zip
Don't translate compiler-internal bug messages
Diffstat (limited to 'compiler/rustc_expand/src')
-rw-r--r--compiler/rustc_expand/src/base.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/base.rs b/compiler/rustc_expand/src/base.rs
index 4b0907cf15a..12473a2bb0b 100644
--- a/compiler/rustc_expand/src/base.rs
+++ b/compiler/rustc_expand/src/base.rs
@@ -1147,7 +1147,7 @@ impl<'a> ExtCtxt<'a> {
     pub fn span_warn<S: Into<MultiSpan>>(&self, sp: S, msg: impl Into<DiagnosticMessage>) {
         self.sess.parse_sess.span_diagnostic.span_warn(sp, msg);
     }
-    pub fn span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: impl Into<DiagnosticMessage>) -> ! {
+    pub fn span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: impl Into<String>) -> ! {
         self.sess.parse_sess.span_diagnostic.span_bug(sp, msg);
     }
     pub fn trace_macros_diag(&mut self) {