@@ -269,7 +269,7 @@ pub fn new_lint_store(internal_lints: bool) -> LintStore {
269
269
/// `rustc_session::lint::builtin`).
270
270
fn register_builtins ( store : & mut LintStore ) {
271
271
macro_rules! add_lint_group {
272
- ( $name: expr, $( $lint: ident) ,* ) => (
272
+ ( $name: expr, $( $lint: ident) ,* $ ( , ) ? ) => (
273
273
store. register_group( false , $name, None , vec![ $( LintId :: of( $lint) ) ,* ] ) ;
274
274
)
275
275
}
@@ -284,7 +284,7 @@ fn register_builtins(store: &mut LintStore) {
284
284
"nonstandard_style" ,
285
285
NON_CAMEL_CASE_TYPES ,
286
286
NON_SNAKE_CASE ,
287
- NON_UPPER_CASE_GLOBALS
287
+ NON_UPPER_CASE_GLOBALS ,
288
288
) ;
289
289
290
290
add_lint_group ! (
@@ -310,7 +310,7 @@ fn register_builtins(store: &mut LintStore) {
310
310
UNUSED_PARENS ,
311
311
UNUSED_BRACES ,
312
312
REDUNDANT_SEMICOLONS ,
313
- MAP_UNIT_FN
313
+ MAP_UNIT_FN ,
314
314
) ;
315
315
316
316
add_lint_group ! ( "let_underscore" , LET_UNDERSCORE_DROP , LET_UNDERSCORE_LOCK ) ;
@@ -321,13 +321,13 @@ fn register_builtins(store: &mut LintStore) {
321
321
UNUSED_EXTERN_CRATES ,
322
322
ELLIPSIS_INCLUSIVE_RANGE_PATTERNS ,
323
323
ELIDED_LIFETIMES_IN_PATHS ,
324
- EXPLICIT_OUTLIVES_REQUIREMENTS // FIXME(#52665, #47816) not always applicable and not all
325
- // macros are ready for this yet.
326
- // UNREACHABLE_PUB,
327
-
328
- // FIXME macro crates are not up for this yet, too much
329
- // breakage is seen if we try to encourage this lint.
330
- // MACRO_USE_EXTERN_CRATE
324
+ EXPLICIT_OUTLIVES_REQUIREMENTS ,
325
+ // FIXME(#52665, #47816) not always applicable and not all
326
+ // macros are ready for this yet.
327
+ // UNREACHABLE_PUB,
328
+ // FIXME macro crates are not up for this yet, too much
329
+ // breakage is seen if we try to encourage this lint.
330
+ // MACRO_USE_EXTERN_CRATE
331
331
) ;
332
332
333
333
add_lint_group ! ( "keyword_idents" , KEYWORD_IDENTS_2018 , KEYWORD_IDENTS_2024 ) ;
0 commit comments