@@ -267,7 +267,7 @@ pub fn new_lint_store(internal_lints: bool) -> LintStore {
267267/// `rustc_session::lint::builtin`).
268268fn register_builtins ( store : & mut LintStore ) {
269269 macro_rules! add_lint_group {
270- ( $name: expr, $( $lint: ident) ,* ) => (
270+ ( $name: expr, $( $lint: ident) ,* $ ( , ) ? ) => (
271271 store. register_group( false , $name, None , vec![ $( LintId :: of( $lint) ) ,* ] ) ;
272272 )
273273 }
@@ -282,7 +282,7 @@ fn register_builtins(store: &mut LintStore) {
282282 "nonstandard_style" ,
283283 NON_CAMEL_CASE_TYPES ,
284284 NON_SNAKE_CASE ,
285- NON_UPPER_CASE_GLOBALS
285+ NON_UPPER_CASE_GLOBALS ,
286286 ) ;
287287
288288 add_lint_group ! (
@@ -308,7 +308,7 @@ fn register_builtins(store: &mut LintStore) {
308308 UNUSED_PARENS ,
309309 UNUSED_BRACES ,
310310 REDUNDANT_SEMICOLONS ,
311- MAP_UNIT_FN
311+ MAP_UNIT_FN ,
312312 ) ;
313313
314314 add_lint_group ! ( "let_underscore" , LET_UNDERSCORE_DROP , LET_UNDERSCORE_LOCK ) ;
@@ -319,13 +319,13 @@ fn register_builtins(store: &mut LintStore) {
319319 UNUSED_EXTERN_CRATES ,
320320 ELLIPSIS_INCLUSIVE_RANGE_PATTERNS ,
321321 ELIDED_LIFETIMES_IN_PATHS ,
322- EXPLICIT_OUTLIVES_REQUIREMENTS // FIXME(#52665, #47816) not always applicable and not all
323- // macros are ready for this yet.
324- // UNREACHABLE_PUB,
325-
326- // FIXME macro crates are not up for this yet, too much
327- // breakage is seen if we try to encourage this lint.
328- // MACRO_USE_EXTERN_CRATE
322+ EXPLICIT_OUTLIVES_REQUIREMENTS ,
323+ // FIXME(#52665, #47816) not always applicable and not all
324+ // macros are ready for this yet.
325+ // UNREACHABLE_PUB,
326+ // FIXME macro crates are not up for this yet, too much
327+ // breakage is seen if we try to encourage this lint.
328+ // MACRO_USE_EXTERN_CRATE
329329 ) ;
330330
331331 add_lint_group ! ( "keyword_idents" , KEYWORD_IDENTS_2018 , KEYWORD_IDENTS_2024 ) ;
0 commit comments