@@ -550,15 +550,15 @@ macro_rules! unimplemented {
550
550
/// into libsyntax itself.
551
551
///
552
552
/// For more information, see documentation for `std`'s macros.
553
- #[ cfg( dox) ]
554
- pub mod builtin {
553
+ mod builtin {
555
554
/// The core macro for formatted string creation & output.
556
555
///
557
556
/// For more information, see the documentation for [`std::format_args!`].
558
557
///
559
558
/// [`std::format_args!`]: ../std/macro.format_args.html
560
559
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
561
560
#[ macro_export]
561
+ #[ cfg( dox) ]
562
562
macro_rules! format_args { ( $fmt: expr, $( $args: tt) * ) => ( {
563
563
/* compiler built-in */
564
564
} ) }
@@ -570,6 +570,7 @@ pub mod builtin {
570
570
/// [`std::env!`]: ../std/macro.env.html
571
571
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
572
572
#[ macro_export]
573
+ #[ cfg( dox) ]
573
574
macro_rules! env { ( $name: expr) => ( { /* compiler built-in */ } ) }
574
575
575
576
/// Optionally inspect an environment variable at compile time.
@@ -579,6 +580,7 @@ pub mod builtin {
579
580
/// [`std::option_env!`]: ../std/macro.option_env.html
580
581
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
581
582
#[ macro_export]
583
+ #[ cfg( dox) ]
582
584
macro_rules! option_env { ( $name: expr) => ( { /* compiler built-in */ } ) }
583
585
584
586
/// Concatenate identifiers into one identifier.
@@ -588,6 +590,7 @@ pub mod builtin {
588
590
/// [`std::concat_idents!`]: ../std/macro.concat_idents.html
589
591
#[ unstable( feature = "concat_idents_macro" , issue = "29599" ) ]
590
592
#[ macro_export]
593
+ #[ cfg( dox) ]
591
594
macro_rules! concat_idents {
592
595
( $( $e: ident) ,* ) => ( { /* compiler built-in */ } )
593
596
}
@@ -599,6 +602,7 @@ pub mod builtin {
599
602
/// [`std::concat!`]: ../std/macro.concat.html
600
603
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
601
604
#[ macro_export]
605
+ #[ cfg( dox) ]
602
606
macro_rules! concat { ( $( $e: expr) ,* ) => ( { /* compiler built-in */ } ) }
603
607
604
608
/// A macro which expands to the line number on which it was invoked.
@@ -608,6 +612,7 @@ pub mod builtin {
608
612
/// [`std::line!`]: ../std/macro.line.html
609
613
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
610
614
#[ macro_export]
615
+ #[ cfg( dox) ]
611
616
macro_rules! line { ( ) => ( { /* compiler built-in */ } ) }
612
617
613
618
/// A macro which expands to the column number on which it was invoked.
@@ -617,6 +622,7 @@ pub mod builtin {
617
622
/// [`std::column!`]: ../std/macro.column.html
618
623
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
619
624
#[ macro_export]
625
+ #[ cfg( dox) ]
620
626
macro_rules! column { ( ) => ( { /* compiler built-in */ } ) }
621
627
622
628
/// A macro which expands to the file name from which it was invoked.
@@ -626,6 +632,7 @@ pub mod builtin {
626
632
/// [`std::file!`]: ../std/macro.file.html
627
633
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
628
634
#[ macro_export]
635
+ #[ cfg( dox) ]
629
636
macro_rules! file { ( ) => ( { /* compiler built-in */ } ) }
630
637
631
638
/// A macro which stringifies its argument.
@@ -635,6 +642,7 @@ pub mod builtin {
635
642
/// [`std::stringify!`]: ../std/macro.stringify.html
636
643
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
637
644
#[ macro_export]
645
+ #[ cfg( dox) ]
638
646
macro_rules! stringify { ( $t: tt) => ( { /* compiler built-in */ } ) }
639
647
640
648
/// Includes a utf8-encoded file as a string.
@@ -644,6 +652,7 @@ pub mod builtin {
644
652
/// [`std::include_str!`]: ../std/macro.include_str.html
645
653
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
646
654
#[ macro_export]
655
+ #[ cfg( dox) ]
647
656
macro_rules! include_str { ( $file: expr) => ( { /* compiler built-in */ } ) }
648
657
649
658
/// Includes a file as a reference to a byte array.
@@ -653,6 +662,7 @@ pub mod builtin {
653
662
/// [`std::include_bytes!`]: ../std/macro.include_bytes.html
654
663
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
655
664
#[ macro_export]
665
+ #[ cfg( dox) ]
656
666
macro_rules! include_bytes { ( $file: expr) => ( { /* compiler built-in */ } ) }
657
667
658
668
/// Expands to a string that represents the current module path.
@@ -662,6 +672,7 @@ pub mod builtin {
662
672
/// [`std::module_path!`]: ../std/macro.module_path.html
663
673
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
664
674
#[ macro_export]
675
+ #[ cfg( dox) ]
665
676
macro_rules! module_path { ( ) => ( { /* compiler built-in */ } ) }
666
677
667
678
/// Boolean evaluation of configuration flags.
@@ -671,6 +682,7 @@ pub mod builtin {
671
682
/// [`std::cfg!`]: ../std/macro.cfg.html
672
683
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
673
684
#[ macro_export]
685
+ #[ cfg( dox) ]
674
686
macro_rules! cfg { ( $( $cfg: tt) * ) => ( { /* compiler built-in */ } ) }
675
687
676
688
/// Parse a file as an expression or an item according to the context.
@@ -680,5 +692,6 @@ pub mod builtin {
680
692
/// [`std::include!`]: ../std/macro.include.html
681
693
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
682
694
#[ macro_export]
695
+ #[ cfg( dox) ]
683
696
macro_rules! include { ( $file: expr) => ( { /* compiler built-in */ } ) }
684
697
}
0 commit comments