Skip to content

Commit

Permalink
Improve register_diagnostics macro
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 16, 2015
1 parent e4e9319 commit a5d8c43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libsyntax/diagnostics/macros.rs
Expand Up @@ -63,6 +63,9 @@ macro_rules! fileline_help {
macro_rules! register_diagnostics {
($($code:tt),*) => (
$(register_diagnostic! { $code })*
);
($($code:tt),*,) => (
$(register_diagnostic! { $code })*
)
}

Expand Down

0 comments on commit a5d8c43

Please sign in to comment.