@@ -520,15 +520,15 @@ macro_rules! unimplemented {
520
520
/// into libsyntax itself.
521
521
///
522
522
/// For more information, see documentation for `std`'s macros.
523
- #[ cfg( dox) ]
524
- pub mod builtin {
523
+ mod builtin {
525
524
/// The core macro for formatted string creation & output.
526
525
///
527
526
/// For more information, see the documentation for [`std::format_args!`].
528
527
///
529
528
/// [`std::format_args!`]: ../std/macro.format_args.html
530
529
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
531
530
#[ macro_export]
531
+ #[ cfg( dox) ]
532
532
macro_rules! format_args { ( $fmt: expr, $( $args: tt) * ) => ( {
533
533
/* compiler built-in */
534
534
} ) }
@@ -540,6 +540,7 @@ pub mod builtin {
540
540
/// [`std::env!`]: ../std/macro.env.html
541
541
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
542
542
#[ macro_export]
543
+ #[ cfg( dox) ]
543
544
macro_rules! env { ( $name: expr) => ( { /* compiler built-in */ } ) }
544
545
545
546
/// Optionally inspect an environment variable at compile time.
@@ -549,6 +550,7 @@ pub mod builtin {
549
550
/// [`std::option_env!`]: ../std/macro.option_env.html
550
551
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
551
552
#[ macro_export]
553
+ #[ cfg( dox) ]
552
554
macro_rules! option_env { ( $name: expr) => ( { /* compiler built-in */ } ) }
553
555
554
556
/// Concatenate identifiers into one identifier.
@@ -558,6 +560,7 @@ pub mod builtin {
558
560
/// [`std::concat_idents!`]: ../std/macro.concat_idents.html
559
561
#[ unstable( feature = "concat_idents_macro" , issue = "29599" ) ]
560
562
#[ macro_export]
563
+ #[ cfg( dox) ]
561
564
macro_rules! concat_idents {
562
565
( $( $e: ident) ,* ) => ( { /* compiler built-in */ } )
563
566
}
@@ -569,6 +572,7 @@ pub mod builtin {
569
572
/// [`std::concat!`]: ../std/macro.concat.html
570
573
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
571
574
#[ macro_export]
575
+ #[ cfg( dox) ]
572
576
macro_rules! concat { ( $( $e: expr) ,* ) => ( { /* compiler built-in */ } ) }
573
577
574
578
/// A macro which expands to the line number on which it was invoked.
@@ -578,6 +582,7 @@ pub mod builtin {
578
582
/// [`std::line!`]: ../std/macro.line.html
579
583
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
580
584
#[ macro_export]
585
+ #[ cfg( dox) ]
581
586
macro_rules! line { ( ) => ( { /* compiler built-in */ } ) }
582
587
583
588
/// A macro which expands to the column number on which it was invoked.
@@ -587,6 +592,7 @@ pub mod builtin {
587
592
/// [`std::column!`]: ../std/macro.column.html
588
593
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
589
594
#[ macro_export]
595
+ #[ cfg( dox) ]
590
596
macro_rules! column { ( ) => ( { /* compiler built-in */ } ) }
591
597
592
598
/// A macro which expands to the file name from which it was invoked.
@@ -596,6 +602,7 @@ pub mod builtin {
596
602
/// [`std::file!`]: ../std/macro.file.html
597
603
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
598
604
#[ macro_export]
605
+ #[ cfg( dox) ]
599
606
macro_rules! file { ( ) => ( { /* compiler built-in */ } ) }
600
607
601
608
/// A macro which stringifies its argument.
@@ -605,6 +612,7 @@ pub mod builtin {
605
612
/// [`std::stringify!`]: ../std/macro.stringify.html
606
613
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
607
614
#[ macro_export]
615
+ #[ cfg( dox) ]
608
616
macro_rules! stringify { ( $t: tt) => ( { /* compiler built-in */ } ) }
609
617
610
618
/// Includes a utf8-encoded file as a string.
@@ -614,6 +622,7 @@ pub mod builtin {
614
622
/// [`std::include_str!`]: ../std/macro.include_str.html
615
623
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
616
624
#[ macro_export]
625
+ #[ cfg( dox) ]
617
626
macro_rules! include_str { ( $file: expr) => ( { /* compiler built-in */ } ) }
618
627
619
628
/// Includes a file as a reference to a byte array.
@@ -623,6 +632,7 @@ pub mod builtin {
623
632
/// [`std::include_bytes!`]: ../std/macro.include_bytes.html
624
633
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
625
634
#[ macro_export]
635
+ #[ cfg( dox) ]
626
636
macro_rules! include_bytes { ( $file: expr) => ( { /* compiler built-in */ } ) }
627
637
628
638
/// Expands to a string that represents the current module path.
@@ -632,6 +642,7 @@ pub mod builtin {
632
642
/// [`std::module_path!`]: ../std/macro.module_path.html
633
643
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
634
644
#[ macro_export]
645
+ #[ cfg( dox) ]
635
646
macro_rules! module_path { ( ) => ( { /* compiler built-in */ } ) }
636
647
637
648
/// Boolean evaluation of configuration flags.
@@ -641,6 +652,7 @@ pub mod builtin {
641
652
/// [`std::cfg!`]: ../std/macro.cfg.html
642
653
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
643
654
#[ macro_export]
655
+ #[ cfg( dox) ]
644
656
macro_rules! cfg { ( $( $cfg: tt) * ) => ( { /* compiler built-in */ } ) }
645
657
646
658
/// Parse a file as an expression or an item according to the context.
@@ -650,5 +662,6 @@ pub mod builtin {
650
662
/// [`std::include!`]: ../std/macro.include.html
651
663
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
652
664
#[ macro_export]
665
+ #[ cfg( dox) ]
653
666
macro_rules! include { ( $file: expr) => ( { /* compiler built-in */ } ) }
654
667
}
0 commit comments