@@ -315,7 +315,10 @@ pub mod builtin {
315
315
/// ```
316
316
#[ stable( feature = "compile_error_macro" , since = "1.20.0" ) ]
317
317
#[ macro_export]
318
- macro_rules! compile_error { ( $msg: expr) => ( { /* compiler built-in */ } ) }
318
+ macro_rules! compile_error {
319
+ ( $msg: expr) => ( { /* compiler built-in */ } ) ;
320
+ ( $msg: expr, ) => ( { /* compiler built-in */ } ) ;
321
+ }
319
322
320
323
/// The core macro for formatted string creation & output.
321
324
///
@@ -403,7 +406,10 @@ pub mod builtin {
403
406
/// ```
404
407
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
405
408
#[ macro_export]
406
- macro_rules! option_env { ( $name: expr) => ( { /* compiler built-in */ } ) }
409
+ macro_rules! option_env {
410
+ ( $name: expr) => ( { /* compiler built-in */ } ) ;
411
+ ( $name: expr, ) => ( { /* compiler built-in */ } ) ;
412
+ }
407
413
408
414
/// Concatenate identifiers into one identifier.
409
415
///
@@ -583,7 +589,10 @@ pub mod builtin {
583
589
/// Compiling 'main.rs' and running the resulting binary will print "adiós".
584
590
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
585
591
#[ macro_export]
586
- macro_rules! include_str { ( $file: expr) => ( { /* compiler built-in */ } ) }
592
+ macro_rules! include_str {
593
+ ( $file: expr) => ( { /* compiler built-in */ } ) ;
594
+ ( $file: expr, ) => ( { /* compiler built-in */ } ) ;
595
+ }
587
596
588
597
/// Includes a file as a reference to a byte array.
589
598
///
@@ -617,7 +626,10 @@ pub mod builtin {
617
626
/// Compiling 'main.rs' and running the resulting binary will print "adiós".
618
627
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
619
628
#[ macro_export]
620
- macro_rules! include_bytes { ( $file: expr) => ( { /* compiler built-in */ } ) }
629
+ macro_rules! include_bytes {
630
+ ( $file: expr) => ( { /* compiler built-in */ } ) ;
631
+ ( $file: expr, ) => ( { /* compiler built-in */ } ) ;
632
+ }
621
633
622
634
/// Expands to a string that represents the current module path.
623
635
///
@@ -703,7 +715,10 @@ pub mod builtin {
703
715
/// "🙈🙊🙉🙈🙊🙉".
704
716
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
705
717
#[ macro_export]
706
- macro_rules! include { ( $file: expr) => ( { /* compiler built-in */ } ) }
718
+ macro_rules! include {
719
+ ( $file: expr) => ( { /* compiler built-in */ } ) ;
720
+ ( $file: expr, ) => ( { /* compiler built-in */ } ) ;
721
+ }
707
722
}
708
723
709
724
/// A macro for defining #[cfg] if-else statements.
0 commit comments