@@ -317,7 +317,7 @@ macro_rules! assert_approx_eq {
317
317
/// macro, but are documented here. Their implementations can be found hardcoded
318
318
/// into libsyntax itself.
319
319
#[ cfg( dox) ]
320
- pub mod builtin {
320
+ mod builtin {
321
321
322
322
/// Unconditionally causes compilation to fail with the given error message when encountered.
323
323
///
@@ -355,7 +355,7 @@ pub mod builtin {
355
355
///
356
356
/// [`panic!`]: ../std/macro.panic.html
357
357
#[ stable( feature = "compile_error_macro" , since = "1.20.0" ) ]
358
- #[ macro_export ]
358
+ #[ rustc_doc_only_macro ]
359
359
macro_rules! compile_error {
360
360
( $msg: expr) => ( { /* compiler built-in */ } ) ;
361
361
( $msg: expr, ) => ( { /* compiler built-in */ } ) ;
@@ -407,7 +407,7 @@ pub mod builtin {
407
407
/// assert_eq!(s, format!("hello {}", "world"));
408
408
/// ```
409
409
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
410
- #[ macro_export ]
410
+ #[ rustc_doc_only_macro ]
411
411
macro_rules! format_args {
412
412
( $fmt: expr) => ( { /* compiler built-in */ } ) ;
413
413
( $fmt: expr, $( $args: tt) * ) => ( { /* compiler built-in */ } ) ;
@@ -445,7 +445,7 @@ pub mod builtin {
445
445
/// error: what's that?!
446
446
/// ```
447
447
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
448
- #[ macro_export ]
448
+ #[ rustc_doc_only_macro ]
449
449
macro_rules! env {
450
450
( $name: expr) => ( { /* compiler built-in */ } ) ;
451
451
( $name: expr, ) => ( { /* compiler built-in */ } ) ;
@@ -471,7 +471,7 @@ pub mod builtin {
471
471
/// println!("the secret key might be: {:?}", key);
472
472
/// ```
473
473
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
474
- #[ macro_export ]
474
+ #[ rustc_doc_only_macro ]
475
475
macro_rules! option_env {
476
476
( $name: expr) => ( { /* compiler built-in */ } ) ;
477
477
( $name: expr, ) => ( { /* compiler built-in */ } ) ;
@@ -502,7 +502,7 @@ pub mod builtin {
502
502
/// # }
503
503
/// ```
504
504
#[ unstable( feature = "concat_idents_macro" , issue = "29599" ) ]
505
- #[ macro_export ]
505
+ #[ rustc_doc_only_macro ]
506
506
macro_rules! concat_idents {
507
507
( $( $e: ident) ,+) => ( { /* compiler built-in */ } ) ;
508
508
( $( $e: ident, ) +) => ( { /* compiler built-in */ } ) ;
@@ -524,7 +524,7 @@ pub mod builtin {
524
524
/// assert_eq!(s, "test10btrue");
525
525
/// ```
526
526
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
527
- #[ macro_export ]
527
+ #[ rustc_doc_only_macro ]
528
528
macro_rules! concat {
529
529
( $( $e: expr) ,* ) => ( { /* compiler built-in */ } ) ;
530
530
( $( $e: expr, ) * ) => ( { /* compiler built-in */ } ) ;
@@ -552,7 +552,7 @@ pub mod builtin {
552
552
/// println!("defined on line: {}", current_line);
553
553
/// ```
554
554
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
555
- #[ macro_export ]
555
+ #[ rustc_doc_only_macro ]
556
556
macro_rules! line { ( ) => ( { /* compiler built-in */ } ) }
557
557
558
558
/// A macro which expands to the column number on which it was invoked.
@@ -577,7 +577,7 @@ pub mod builtin {
577
577
/// println!("defined on column: {}", current_col);
578
578
/// ```
579
579
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
580
- #[ macro_export ]
580
+ #[ rustc_doc_only_macro ]
581
581
macro_rules! column { ( ) => ( { /* compiler built-in */ } ) }
582
582
583
583
/// A macro which expands to the file name from which it was invoked.
@@ -601,7 +601,7 @@ pub mod builtin {
601
601
/// println!("defined in file: {}", this_file);
602
602
/// ```
603
603
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
604
- #[ macro_export ]
604
+ #[ rustc_doc_only_macro ]
605
605
macro_rules! file { ( ) => ( { /* compiler built-in */ } ) }
606
606
607
607
/// A macro which stringifies its arguments.
@@ -620,7 +620,7 @@ pub mod builtin {
620
620
/// assert_eq!(one_plus_one, "1 + 1");
621
621
/// ```
622
622
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
623
- #[ macro_export ]
623
+ #[ rustc_doc_only_macro ]
624
624
macro_rules! stringify { ( $( $t: tt) * ) => ( { /* compiler built-in */ } ) }
625
625
626
626
/// Includes a utf8-encoded file as a string.
@@ -654,7 +654,7 @@ pub mod builtin {
654
654
///
655
655
/// Compiling 'main.rs' and running the resulting binary will print "adiΓ³s".
656
656
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
657
- #[ macro_export ]
657
+ #[ rustc_doc_only_macro ]
658
658
macro_rules! include_str {
659
659
( $file: expr) => ( { /* compiler built-in */ } ) ;
660
660
( $file: expr, ) => ( { /* compiler built-in */ } ) ;
@@ -691,7 +691,7 @@ pub mod builtin {
691
691
///
692
692
/// Compiling 'main.rs' and running the resulting binary will print "adiΓ³s".
693
693
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
694
- #[ macro_export ]
694
+ #[ rustc_doc_only_macro ]
695
695
macro_rules! include_bytes {
696
696
( $file: expr) => ( { /* compiler built-in */ } ) ;
697
697
( $file: expr, ) => ( { /* compiler built-in */ } ) ;
@@ -715,7 +715,7 @@ pub mod builtin {
715
715
/// test::foo();
716
716
/// ```
717
717
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
718
- #[ macro_export ]
718
+ #[ rustc_doc_only_macro ]
719
719
macro_rules! module_path { ( ) => ( { /* compiler built-in */ } ) }
720
720
721
721
/// Boolean evaluation of configuration flags, at compile-time.
@@ -737,7 +737,7 @@ pub mod builtin {
737
737
/// };
738
738
/// ```
739
739
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
740
- #[ macro_export ]
740
+ #[ rustc_doc_only_macro ]
741
741
macro_rules! cfg { ( $( $cfg: tt) * ) => ( { /* compiler built-in */ } ) }
742
742
743
743
/// Parse a file as an expression or an item according to the context.
@@ -780,7 +780,7 @@ pub mod builtin {
780
780
/// Compiling 'main.rs' and running the resulting binary will print
781
781
/// "ππππππ".
782
782
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
783
- #[ macro_export ]
783
+ #[ rustc_doc_only_macro ]
784
784
macro_rules! include {
785
785
( $file: expr) => ( { /* compiler built-in */ } ) ;
786
786
( $file: expr, ) => ( { /* compiler built-in */ } ) ;
@@ -833,7 +833,7 @@ pub mod builtin {
833
833
/// assert!(a + b == 30, "a = {}, b = {}", a, b);
834
834
/// ```
835
835
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
836
- #[ macro_export ]
836
+ #[ rustc_doc_only_macro ]
837
837
macro_rules! assert {
838
838
( $cond: expr) => ( { /* compiler built-in */ } ) ;
839
839
( $cond: expr, ) => ( { /* compiler built-in */ } ) ;
0 commit comments