Skip to content

Commit 3684306

Browse files
committed
Support trailing comma in add_lint_group!
1 parent a165d5a commit 3684306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lint/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ pub fn new_lint_store(internal_lints: bool) -> LintStore {
253253
/// `rustc_session::lint::builtin`).
254254
fn register_builtins(store: &mut LintStore) {
255255
macro_rules! add_lint_group {
256-
($name:expr, $($lint:ident),*) => (
256+
($name:expr, $($lint:ident),* $(,)?) => (
257257
store.register_group(false, $name, None, vec![$(LintId::of($lint)),*]);
258258
)
259259
}

0 commit comments

Comments
 (0)