@@ -268,7 +268,7 @@ pub fn new_lint_store(internal_lints: bool) -> LintStore {
268268/// `rustc_session::lint::builtin`).
269269fn register_builtins ( store : & mut LintStore ) {
270270 macro_rules! add_lint_group {
271- ( $name: expr, $( $lint: ident) ,* ) => (
271+ ( $name: expr, $( $lint: ident) ,* $ ( , ) ? ) => (
272272 store. register_group( false , $name, None , vec![ $( LintId :: of( $lint) ) ,* ] ) ;
273273 )
274274 }
@@ -283,7 +283,7 @@ fn register_builtins(store: &mut LintStore) {
283283 "nonstandard_style" ,
284284 NON_CAMEL_CASE_TYPES ,
285285 NON_SNAKE_CASE ,
286- NON_UPPER_CASE_GLOBALS
286+ NON_UPPER_CASE_GLOBALS ,
287287 ) ;
288288
289289 add_lint_group ! (
@@ -309,7 +309,7 @@ fn register_builtins(store: &mut LintStore) {
309309 UNUSED_PARENS ,
310310 UNUSED_BRACES ,
311311 REDUNDANT_SEMICOLONS ,
312- MAP_UNIT_FN
312+ MAP_UNIT_FN ,
313313 ) ;
314314
315315 add_lint_group ! ( "let_underscore" , LET_UNDERSCORE_DROP , LET_UNDERSCORE_LOCK ) ;
@@ -320,13 +320,13 @@ fn register_builtins(store: &mut LintStore) {
320320 UNUSED_EXTERN_CRATES ,
321321 ELLIPSIS_INCLUSIVE_RANGE_PATTERNS ,
322322 ELIDED_LIFETIMES_IN_PATHS ,
323- EXPLICIT_OUTLIVES_REQUIREMENTS // FIXME(#52665, #47816) not always applicable and not all
324- // macros are ready for this yet.
325- // UNREACHABLE_PUB,
326-
327- // FIXME macro crates are not up for this yet, too much
328- // breakage is seen if we try to encourage this lint.
329- // MACRO_USE_EXTERN_CRATE
323+ EXPLICIT_OUTLIVES_REQUIREMENTS ,
324+ // FIXME(#52665, #47816) not always applicable and not all
325+ // macros are ready for this yet.
326+ // UNREACHABLE_PUB,
327+ // FIXME macro crates are not up for this yet, too much
328+ // breakage is seen if we try to encourage this lint.
329+ // MACRO_USE_EXTERN_CRATE
330330 ) ;
331331
332332 add_lint_group ! ( "keyword_idents" , KEYWORD_IDENTS_2018 , KEYWORD_IDENTS_2024 ) ;
0 commit comments