Skip to content

Commit 49b9666

Browse files
GuillaumeGomezbrson
authored andcommitted
Fix invalid src url
1 parent 291a10d commit 49b9666

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/libcore/macros.rs

+15-2
Original file line numberDiff line numberDiff line change
@@ -520,15 +520,15 @@ macro_rules! unimplemented {
520520
/// into libsyntax itself.
521521
///
522522
/// For more information, see documentation for `std`'s macros.
523-
#[cfg(dox)]
524-
pub mod builtin {
523+
mod builtin {
525524
/// The core macro for formatted string creation & output.
526525
///
527526
/// For more information, see the documentation for [`std::format_args!`].
528527
///
529528
/// [`std::format_args!`]: ../std/macro.format_args.html
530529
#[stable(feature = "rust1", since = "1.0.0")]
531530
#[macro_export]
531+
#[cfg(dox)]
532532
macro_rules! format_args { ($fmt:expr, $($args:tt)*) => ({
533533
/* compiler built-in */
534534
}) }
@@ -540,6 +540,7 @@ pub mod builtin {
540540
/// [`std::env!`]: ../std/macro.env.html
541541
#[stable(feature = "rust1", since = "1.0.0")]
542542
#[macro_export]
543+
#[cfg(dox)]
543544
macro_rules! env { ($name:expr) => ({ /* compiler built-in */ }) }
544545

545546
/// Optionally inspect an environment variable at compile time.
@@ -549,6 +550,7 @@ pub mod builtin {
549550
/// [`std::option_env!`]: ../std/macro.option_env.html
550551
#[stable(feature = "rust1", since = "1.0.0")]
551552
#[macro_export]
553+
#[cfg(dox)]
552554
macro_rules! option_env { ($name:expr) => ({ /* compiler built-in */ }) }
553555

554556
/// Concatenate identifiers into one identifier.
@@ -558,6 +560,7 @@ pub mod builtin {
558560
/// [`std::concat_idents!`]: ../std/macro.concat_idents.html
559561
#[unstable(feature = "concat_idents_macro", issue = "29599")]
560562
#[macro_export]
563+
#[cfg(dox)]
561564
macro_rules! concat_idents {
562565
($($e:ident),*) => ({ /* compiler built-in */ })
563566
}
@@ -569,6 +572,7 @@ pub mod builtin {
569572
/// [`std::concat!`]: ../std/macro.concat.html
570573
#[stable(feature = "rust1", since = "1.0.0")]
571574
#[macro_export]
575+
#[cfg(dox)]
572576
macro_rules! concat { ($($e:expr),*) => ({ /* compiler built-in */ }) }
573577

574578
/// A macro which expands to the line number on which it was invoked.
@@ -578,6 +582,7 @@ pub mod builtin {
578582
/// [`std::line!`]: ../std/macro.line.html
579583
#[stable(feature = "rust1", since = "1.0.0")]
580584
#[macro_export]
585+
#[cfg(dox)]
581586
macro_rules! line { () => ({ /* compiler built-in */ }) }
582587

583588
/// A macro which expands to the column number on which it was invoked.
@@ -587,6 +592,7 @@ pub mod builtin {
587592
/// [`std::column!`]: ../std/macro.column.html
588593
#[stable(feature = "rust1", since = "1.0.0")]
589594
#[macro_export]
595+
#[cfg(dox)]
590596
macro_rules! column { () => ({ /* compiler built-in */ }) }
591597

592598
/// A macro which expands to the file name from which it was invoked.
@@ -596,6 +602,7 @@ pub mod builtin {
596602
/// [`std::file!`]: ../std/macro.file.html
597603
#[stable(feature = "rust1", since = "1.0.0")]
598604
#[macro_export]
605+
#[cfg(dox)]
599606
macro_rules! file { () => ({ /* compiler built-in */ }) }
600607

601608
/// A macro which stringifies its argument.
@@ -605,6 +612,7 @@ pub mod builtin {
605612
/// [`std::stringify!`]: ../std/macro.stringify.html
606613
#[stable(feature = "rust1", since = "1.0.0")]
607614
#[macro_export]
615+
#[cfg(dox)]
608616
macro_rules! stringify { ($t:tt) => ({ /* compiler built-in */ }) }
609617

610618
/// Includes a utf8-encoded file as a string.
@@ -614,6 +622,7 @@ pub mod builtin {
614622
/// [`std::include_str!`]: ../std/macro.include_str.html
615623
#[stable(feature = "rust1", since = "1.0.0")]
616624
#[macro_export]
625+
#[cfg(dox)]
617626
macro_rules! include_str { ($file:expr) => ({ /* compiler built-in */ }) }
618627

619628
/// Includes a file as a reference to a byte array.
@@ -623,6 +632,7 @@ pub mod builtin {
623632
/// [`std::include_bytes!`]: ../std/macro.include_bytes.html
624633
#[stable(feature = "rust1", since = "1.0.0")]
625634
#[macro_export]
635+
#[cfg(dox)]
626636
macro_rules! include_bytes { ($file:expr) => ({ /* compiler built-in */ }) }
627637

628638
/// Expands to a string that represents the current module path.
@@ -632,6 +642,7 @@ pub mod builtin {
632642
/// [`std::module_path!`]: ../std/macro.module_path.html
633643
#[stable(feature = "rust1", since = "1.0.0")]
634644
#[macro_export]
645+
#[cfg(dox)]
635646
macro_rules! module_path { () => ({ /* compiler built-in */ }) }
636647

637648
/// Boolean evaluation of configuration flags.
@@ -641,6 +652,7 @@ pub mod builtin {
641652
/// [`std::cfg!`]: ../std/macro.cfg.html
642653
#[stable(feature = "rust1", since = "1.0.0")]
643654
#[macro_export]
655+
#[cfg(dox)]
644656
macro_rules! cfg { ($($cfg:tt)*) => ({ /* compiler built-in */ }) }
645657

646658
/// Parse a file as an expression or an item according to the context.
@@ -650,5 +662,6 @@ pub mod builtin {
650662
/// [`std::include!`]: ../std/macro.include.html
651663
#[stable(feature = "rust1", since = "1.0.0")]
652664
#[macro_export]
665+
#[cfg(dox)]
653666
macro_rules! include { ($file:expr) => ({ /* compiler built-in */ }) }
654667
}

0 commit comments

Comments
 (0)