From 19d28a4f28ad8125775e73e97e8bab2b2229f4e1 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 14 Dec 2023 12:26:15 +1100 Subject: Change `msg: impl Into` for bug diagnostics. To `msg: impl Into`, like all the other diagnostics. For consistency. --- compiler/rustc_parse/src/parser/diagnostics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/rustc_parse/src/parser') 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>(&self, sp: S, m: impl Into) -> ! { - self.diagnostic().span_bug(sp, m) + pub fn span_bug>(&self, sp: S, msg: impl Into) -> ! { + self.diagnostic().span_bug(sp, msg) } pub(super) fn diagnostic(&self) -> &'a Handler { -- cgit 1.4.1-3-g733a5