diff options
| author | bors <bors@rust-lang.org> | 2023-12-15 06:24:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-15 06:24:30 +0000 |
| commit | c9e0610055d313390bce55e26234aa496d41c46e (patch) | |
| tree | a05200c33404b43f367f4fde0f8e3c5cb262c9e7 /compiler/rustc_parse/src/parser | |
| parent | 5747646aab51c430690afa993aa5268cfd00cd8c (diff) | |
| parent | b0d92a7653c49b5e82b68c624fe0f28944dfe988 (diff) | |
| download | rust-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.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 { |
