Improve register_long_diagnostics macro
This commit is contained in:
parent
a5d8c43687
commit
6e58043e75
1 changed files with 3 additions and 0 deletions
|
|
@ -73,5 +73,8 @@ macro_rules! register_diagnostics {
|
|||
macro_rules! register_long_diagnostics {
|
||||
($($code:tt: $description:tt),*) => (
|
||||
$(register_diagnostic! { $code, $description })*
|
||||
);
|
||||
($($code:tt: $description:tt),*,) => (
|
||||
$(register_diagnostic! { $code, $description })*
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue