diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2023-12-14 16:07:48 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-14 16:07:48 -0800 |
| commit | 9e872b7cd8cd28314b9426e13ac586dad6fc9c2e (patch) | |
| tree | 33b238d5fc9b8970f6a89273089982dd0bd7ce56 /compiler/rustc_parse/src/parser | |
| parent | 576a74b8c9dc72704309db8fc12a2f1ca1cd7c59 (diff) | |
| parent | 9a7841251115c79fe7e1c12e2e5d637e19ad940a (diff) | |
| download | rust-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.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 { |
