fix: fix issue in macro

This commit is contained in:
Ezra Shaw 2023-02-25 22:12:30 +13:00
parent 9f876cc900
commit 3b51e9fde8
No known key found for this signature in database
GPG Key ID: 67ABF16FB0ECD870

View File

@ -22,7 +22,7 @@ macro_rules! register_diagnostics {
pub fn error_codes() -> Vec<(&'static str, Option<&'static str>)> {
let mut errors: Vec<(&str, Option<&str>)> = vec![
$((stringify!($error_code), Some($message)),)+
$((stringify!($undocumented), None),)+
$((stringify!($undocumented), None),)*
];
errors.sort();
errors