diff options
| author | The Miri Conjob Bot <miri@cron.bot> | 2023-12-15 05:01:08 +0000 |
|---|---|---|
| committer | The Miri Conjob Bot <miri@cron.bot> | 2023-12-15 05:01:08 +0000 |
| commit | b0d92a7653c49b5e82b68c624fe0f28944dfe988 (patch) | |
| tree | a05200c33404b43f367f4fde0f8e3c5cb262c9e7 /compiler/rustc_parse/src/parser | |
| parent | 7c5d692a4ef619c7be3fe061719014cc05d74d0a (diff) | |
| parent | 604f185fae9a4b0edf7e28f616a0f53880f8f074 (diff) | |
| download | rust-b0d92a7653c49b5e82b68c624fe0f28944dfe988.tar.gz rust-b0d92a7653c49b5e82b68c624fe0f28944dfe988.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/diagnostics.rs | 4 |
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 { |
