about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser
diff options
context:
space:
mode:
authorJubilee <46493976+workingjubilee@users.noreply.github.com>2023-12-14 16:07:48 -0800
committerGitHub <noreply@github.com>2023-12-14 16:07:48 -0800
commit9e872b7cd8cd28314b9426e13ac586dad6fc9c2e (patch)
tree33b238d5fc9b8970f6a89273089982dd0bd7ce56 /compiler/rustc_parse/src/parser
parent576a74b8c9dc72704309db8fc12a2f1ca1cd7c59 (diff)
parent9a7841251115c79fe7e1c12e2e5d637e19ad940a (diff)
downloadrust-9e872b7cd8cd28314b9426e13ac586dad6fc9c2e.tar.gz
rust-9e872b7cd8cd28314b9426e13ac586dad6fc9c2e.zip
Rollup merge of #118933 - nnethercote:cleanup-errors-even-more, r=compiler-errors
Cleanup errors handlers even more

A sequel to #118587.

r? `@compiler-errors`
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 {