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