@@ -317,7 +317,7 @@ macro_rules! assert_approx_eq {
317317/// macro, but are documented here. Their implementations can be found hardcoded 
318318/// into libsyntax itself. 
319319#[ cfg( dox) ]  
320- pub   mod  builtin { 
320+ mod  builtin { 
321321
322322    /// Unconditionally causes compilation to fail with the given error message when encountered. 
323323     /// 
@@ -355,7 +355,7 @@ pub mod builtin {
355355     /// 
356356     /// [`panic!`]: ../std/macro.panic.html 
357357     #[ stable( feature = "compile_error_macro" ,  since = "1.20.0" ) ]  
358-     #[ macro_export ]  
358+     #[ rustc_doc_only_macro ]  
359359    macro_rules!  compile_error { 
360360        ( $msg: expr)  => ( {  /* compiler built-in */  } ) ; 
361361        ( $msg: expr, )  => ( {  /* compiler built-in */  } ) ; 
@@ -407,7 +407,7 @@ pub mod builtin {
407407     /// assert_eq!(s, format!("hello {}", "world")); 
408408     /// ``` 
409409     #[ stable( feature = "rust1" ,  since = "1.0.0" ) ]  
410-     #[ macro_export ]  
410+     #[ rustc_doc_only_macro ]  
411411    macro_rules!  format_args { 
412412        ( $fmt: expr)  => ( {  /* compiler built-in */  } ) ; 
413413        ( $fmt: expr,  $( $args: tt) * )  => ( {  /* compiler built-in */  } ) ; 
@@ -445,7 +445,7 @@ pub mod builtin {
445445     /// error: what's that?! 
446446     /// ``` 
447447     #[ stable( feature = "rust1" ,  since = "1.0.0" ) ]  
448-     #[ macro_export ]  
448+     #[ rustc_doc_only_macro ]  
449449    macro_rules!  env { 
450450        ( $name: expr)  => ( {  /* compiler built-in */  } ) ; 
451451        ( $name: expr, )  => ( {  /* compiler built-in */  } ) ; 
@@ -471,7 +471,7 @@ pub mod builtin {
471471     /// println!("the secret key might be: {:?}", key); 
472472     /// ``` 
473473     #[ stable( feature = "rust1" ,  since = "1.0.0" ) ]  
474-     #[ macro_export ]  
474+     #[ rustc_doc_only_macro ]  
475475    macro_rules!  option_env { 
476476        ( $name: expr)  => ( {  /* compiler built-in */  } ) ; 
477477        ( $name: expr, )  => ( {  /* compiler built-in */  } ) ; 
@@ -502,7 +502,7 @@ pub mod builtin {
502502     /// # } 
503503     /// ``` 
504504     #[ unstable( feature = "concat_idents_macro" ,  issue = "29599" ) ]  
505-     #[ macro_export ]  
505+     #[ rustc_doc_only_macro ]  
506506    macro_rules!  concat_idents { 
507507        ( $( $e: ident) ,+)  => ( {  /* compiler built-in */  } ) ; 
508508        ( $( $e: ident, ) +)  => ( {  /* compiler built-in */  } ) ; 
@@ -524,7 +524,7 @@ pub mod builtin {
524524     /// assert_eq!(s, "test10btrue"); 
525525     /// ``` 
526526     #[ stable( feature = "rust1" ,  since = "1.0.0" ) ]  
527-     #[ macro_export ]  
527+     #[ rustc_doc_only_macro ]  
528528    macro_rules!  concat { 
529529        ( $( $e: expr) ,* )  => ( {  /* compiler built-in */  } ) ; 
530530        ( $( $e: expr, ) * )  => ( {  /* compiler built-in */  } ) ; 
@@ -552,7 +552,7 @@ pub mod builtin {
552552     /// println!("defined on line: {}", current_line); 
553553     /// ``` 
554554     #[ stable( feature = "rust1" ,  since = "1.0.0" ) ]  
555-     #[ macro_export ]  
555+     #[ rustc_doc_only_macro ]  
556556    macro_rules!  line {  ( )  => ( {  /* compiler built-in */  } )  } 
557557
558558    /// A macro which expands to the column number on which it was invoked. 
@@ -577,7 +577,7 @@ pub mod builtin {
577577     /// println!("defined on column: {}", current_col); 
578578     /// ``` 
579579     #[ stable( feature = "rust1" ,  since = "1.0.0" ) ]  
580-     #[ macro_export ]  
580+     #[ rustc_doc_only_macro ]  
581581    macro_rules!  column {  ( )  => ( {  /* compiler built-in */  } )  } 
582582
583583    /// A macro which expands to the file name from which it was invoked. 
@@ -601,7 +601,7 @@ pub mod builtin {
601601     /// println!("defined in file: {}", this_file); 
602602     /// ``` 
603603     #[ stable( feature = "rust1" ,  since = "1.0.0" ) ]  
604-     #[ macro_export ]  
604+     #[ rustc_doc_only_macro ]  
605605    macro_rules!  file {  ( )  => ( {  /* compiler built-in */  } )  } 
606606
607607    /// A macro which stringifies its arguments. 
@@ -620,7 +620,7 @@ pub mod builtin {
620620     /// assert_eq!(one_plus_one, "1 + 1"); 
621621     /// ``` 
622622     #[ stable( feature = "rust1" ,  since = "1.0.0" ) ]  
623-     #[ macro_export ]  
623+     #[ rustc_doc_only_macro ]  
624624    macro_rules!  stringify {  ( $( $t: tt) * )  => ( {  /* compiler built-in */  } )  } 
625625
626626    /// Includes a utf8-encoded file as a string. 
@@ -654,7 +654,7 @@ pub mod builtin {
654654     /// 
655655     /// Compiling 'main.rs' and running the resulting binary will print "adiΓ³s". 
656656     #[ stable( feature = "rust1" ,  since = "1.0.0" ) ]  
657-     #[ macro_export ]  
657+     #[ rustc_doc_only_macro ]  
658658    macro_rules!  include_str { 
659659        ( $file: expr)  => ( {  /* compiler built-in */  } ) ; 
660660        ( $file: expr, )  => ( {  /* compiler built-in */  } ) ; 
@@ -691,7 +691,7 @@ pub mod builtin {
691691     /// 
692692     /// Compiling 'main.rs' and running the resulting binary will print "adiΓ³s". 
693693     #[ stable( feature = "rust1" ,  since = "1.0.0" ) ]  
694-     #[ macro_export ]  
694+     #[ rustc_doc_only_macro ]  
695695    macro_rules!  include_bytes { 
696696        ( $file: expr)  => ( {  /* compiler built-in */  } ) ; 
697697        ( $file: expr, )  => ( {  /* compiler built-in */  } ) ; 
@@ -715,7 +715,7 @@ pub mod builtin {
715715     /// test::foo(); 
716716     /// ``` 
717717     #[ stable( feature = "rust1" ,  since = "1.0.0" ) ]  
718-     #[ macro_export ]  
718+     #[ rustc_doc_only_macro ]  
719719    macro_rules!  module_path {  ( )  => ( {  /* compiler built-in */  } )  } 
720720
721721    /// Boolean evaluation of configuration flags, at compile-time. 
@@ -737,7 +737,7 @@ pub mod builtin {
737737     /// }; 
738738     /// ``` 
739739     #[ stable( feature = "rust1" ,  since = "1.0.0" ) ]  
740-     #[ macro_export ]  
740+     #[ rustc_doc_only_macro ]  
741741    macro_rules!  cfg {  ( $( $cfg: tt) * )  => ( {  /* compiler built-in */  } )  } 
742742
743743    /// Parse a file as an expression or an item according to the context. 
@@ -780,7 +780,7 @@ pub mod builtin {
780780     /// Compiling 'main.rs' and running the resulting binary will print 
781781     /// "ππππππ". 
782782     #[ stable( feature = "rust1" ,  since = "1.0.0" ) ]  
783-     #[ macro_export ]  
783+     #[ rustc_doc_only_macro ]  
784784    macro_rules!  include { 
785785        ( $file: expr)  => ( {  /* compiler built-in */  } ) ; 
786786        ( $file: expr, )  => ( {  /* compiler built-in */  } ) ; 
@@ -833,7 +833,7 @@ pub mod builtin {
833833     /// assert!(a + b == 30, "a = {}, b = {}", a, b); 
834834     /// ``` 
835835     #[ stable( feature = "rust1" ,  since = "1.0.0" ) ]  
836-     #[ macro_export ]  
836+     #[ rustc_doc_only_macro ]  
837837    macro_rules!  assert { 
838838        ( $cond: expr)  => ( {  /* compiler built-in */  } ) ; 
839839        ( $cond: expr, )  => ( {  /* compiler built-in */  } ) ; 
0 commit comments