about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-15 06:24:30 +0000
committerbors <bors@rust-lang.org>2023-12-15 06:24:30 +0000
commitc9e0610055d313390bce55e26234aa496d41c46e (patch)
treea05200c33404b43f367f4fde0f8e3c5cb262c9e7 /compiler/rustc_parse/src/parser
parent5747646aab51c430690afa993aa5268cfd00cd8c (diff)
parentb0d92a7653c49b5e82b68c624fe0f28944dfe988 (diff)
downloadrust-c9e0610055d313390bce55e26234aa496d41c46e.tar.gz
rust-c9e0610055d313390bce55e26234aa496d41c46e.zip
Auto merge of #3227 - rust-lang:rustup-2023-12-15, r=RalfJung
Automatic Rustup
Diffstat (limited to 'compiler/rustc_parse/src/parser')
-rw-r--r--compiler/rustc_parse/src/parser/diagnostics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/diagnostics.rs b/compiler/rustc_parse/src/parser/diagnostics.rs
index 5295172b25e..221fc70d9ff 100644
--- a/compiler/rustc_parse/src/parser/diagnostics.rs
+++ b/compiler/rustc_parse/src/parser/diagnostics.rs
@@ -249,8 +249,8 @@ impl<'a> Parser<'a> {
         self.diagnostic().struct_span_err(sp, m)
     }
 
-    pub fn span_bug<S: Into<MultiSpan>>(&self, sp: S, m: impl Into<String>) -> ! {
-        self.diagnostic().span_bug(sp, m)
+    pub fn span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: impl Into<DiagnosticMessage>) -> ! {
+        self.diagnostic().span_bug(sp, msg)
     }
 
     pub(super) fn diagnostic(&self) -> &'a Handler {