@@ -325,9 +325,10 @@ pub mod builtin {
325
325
/// ```
326
326
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
327
327
#[ macro_export]
328
- macro_rules! format_args { ( $fmt: expr, $( $args: tt) * ) => ( {
329
- /* compiler built-in */
330
- } ) }
328
+ macro_rules! format_args {
329
+ ( $fmt: expr) => ( { /* compiler built-in */ } ) ;
330
+ ( $fmt: expr, $( $args: tt) * ) => ( { /* compiler built-in */ } ) ;
331
+ }
331
332
332
333
/// Inspect an environment variable at compile time.
333
334
///
@@ -348,7 +349,10 @@ pub mod builtin {
348
349
/// ```
349
350
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
350
351
#[ macro_export]
351
- macro_rules! env { ( $name: expr) => ( { /* compiler built-in */ } ) }
352
+ macro_rules! env {
353
+ ( $name: expr) => ( { /* compiler built-in */ } ) ;
354
+ ( $name: expr, ) => ( { /* compiler built-in */ } ) ;
355
+ }
352
356
353
357
/// Optionally inspect an environment variable at compile time.
354
358
///
@@ -400,7 +404,8 @@ pub mod builtin {
400
404
#[ unstable( feature = "concat_idents_macro" , issue = "29599" ) ]
401
405
#[ macro_export]
402
406
macro_rules! concat_idents {
403
- ( $( $e: ident) ,* ) => ( { /* compiler built-in */ } )
407
+ ( $( $e: ident) ,* ) => ( { /* compiler built-in */ } ) ;
408
+ ( $( $e: ident, ) * ) => ( { /* compiler built-in */ } ) ;
404
409
}
405
410
406
411
/// Concatenates literals into a static string slice.
@@ -420,7 +425,10 @@ pub mod builtin {
420
425
/// ```
421
426
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
422
427
#[ macro_export]
423
- macro_rules! concat { ( $( $e: expr) ,* ) => ( { /* compiler built-in */ } ) }
428
+ macro_rules! concat {
429
+ ( $( $e: expr) ,* ) => ( { /* compiler built-in */ } ) ;
430
+ ( $( $e: expr, ) * ) => ( { /* compiler built-in */ } ) ;
431
+ }
424
432
425
433
/// A macro which expands to the line number on which it was invoked.
426
434
///
0 commit comments