@@ -267,7 +267,7 @@ pub fn new_lint_store(internal_lints: bool) -> LintStore {
267
267
/// `rustc_session::lint::builtin`).
268
268
fn register_builtins ( store : & mut LintStore ) {
269
269
macro_rules! add_lint_group {
270
- ( $name: expr, $( $lint: ident) ,* ) => (
270
+ ( $name: expr, $( $lint: ident) ,* $ ( , ) ? ) => (
271
271
store. register_group( false , $name, None , vec![ $( LintId :: of( $lint) ) ,* ] ) ;
272
272
)
273
273
}
@@ -282,7 +282,7 @@ fn register_builtins(store: &mut LintStore) {
282
282
"nonstandard_style" ,
283
283
NON_CAMEL_CASE_TYPES ,
284
284
NON_SNAKE_CASE ,
285
- NON_UPPER_CASE_GLOBALS
285
+ NON_UPPER_CASE_GLOBALS ,
286
286
) ;
287
287
288
288
add_lint_group ! (
@@ -308,7 +308,7 @@ fn register_builtins(store: &mut LintStore) {
308
308
UNUSED_PARENS ,
309
309
UNUSED_BRACES ,
310
310
REDUNDANT_SEMICOLONS ,
311
- MAP_UNIT_FN
311
+ MAP_UNIT_FN ,
312
312
) ;
313
313
314
314
add_lint_group ! ( "let_underscore" , LET_UNDERSCORE_DROP , LET_UNDERSCORE_LOCK ) ;
@@ -319,13 +319,13 @@ fn register_builtins(store: &mut LintStore) {
319
319
UNUSED_EXTERN_CRATES ,
320
320
ELLIPSIS_INCLUSIVE_RANGE_PATTERNS ,
321
321
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
329
329
) ;
330
330
331
331
add_lint_group ! ( "keyword_idents" , KEYWORD_IDENTS_2018 , KEYWORD_IDENTS_2024 ) ;
0 commit comments