Fix diagnostic name in macro_error.rs

This commit is contained in:
Yukang 2024-06-21 00:13:34 +08:00 committed by GitHub
parent 67f7eb505e
commit bfcdeb2a24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ pub(crate) fn macro_error(ctx: &DiagnosticsContext<'_>, d: &hir::MacroError) ->
) )
} }
// Diagnostic: macro-error // Diagnostic: macro-def-error
// //
// This diagnostic is shown for macro expansion errors. // This diagnostic is shown for macro expansion errors.
pub(crate) fn macro_def_error(ctx: &DiagnosticsContext<'_>, d: &hir::MacroDefError) -> Diagnostic { pub(crate) fn macro_def_error(ctx: &DiagnosticsContext<'_>, d: &hir::MacroDefError) -> Diagnostic {