Skip to content

Commit 6e58043

Browse files
Improve register_long_diagnostics macro
1 parent a5d8c43 commit 6e58043

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libsyntax/diagnostics/macros.rs

+3
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,8 @@ macro_rules! register_diagnostics {
7373
macro_rules! register_long_diagnostics {
7474
($($code:tt: $description:tt),*) => (
7575
$(register_diagnostic! { $code, $description })*
76+
);
77+
($($code:tt: $description:tt),*,) => (
78+
$(register_diagnostic! { $code, $description })*
7679
)
7780
}

0 commit comments

Comments
 (0)