about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-11-12 00:30:53 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2016-11-12 00:30:53 +0100
commit248a3d9fc08e7b7b7083530a72cc86f966ee4e38 (patch)
treef033d3bb5982fbcdea359d4371c070a28cf11ab7 /src/libcore
parent280362a02df97670dd08ed19557c81b504b395c3 (diff)
downloadrust-248a3d9fc08e7b7b7083530a72cc86f966ee4e38.tar.gz
rust-248a3d9fc08e7b7b7083530a72cc86f966ee4e38.zip
Fix invalid src url
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/macros.rs17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs
index 3cf32d1a559..b3f5363f5b1 100644
--- a/src/libcore/macros.rs
+++ b/src/libcore/macros.rs
@@ -550,8 +550,7 @@ macro_rules! unimplemented {
 /// into libsyntax itself.
 ///
 /// For more information, see documentation for `std`'s macros.
-#[cfg(dox)]
-pub mod builtin {
+mod builtin {
     /// The core macro for formatted string creation & output.
     ///
     /// For more information, see the documentation for [`std::format_args!`].
@@ -559,6 +558,7 @@ pub mod builtin {
     /// [`std::format_args!`]: ../std/macro.format_args.html
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
+    #[cfg(dox)]
     macro_rules! format_args { ($fmt:expr, $($args:tt)*) => ({
         /* compiler built-in */
     }) }
@@ -570,6 +570,7 @@ pub mod builtin {
     /// [`std::env!`]: ../std/macro.env.html
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
+    #[cfg(dox)]
     macro_rules! env { ($name:expr) => ({ /* compiler built-in */ }) }
 
     /// Optionally inspect an environment variable at compile time.
@@ -579,6 +580,7 @@ pub mod builtin {
     /// [`std::option_env!`]: ../std/macro.option_env.html
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
+    #[cfg(dox)]
     macro_rules! option_env { ($name:expr) => ({ /* compiler built-in */ }) }
 
     /// Concatenate identifiers into one identifier.
@@ -588,6 +590,7 @@ pub mod builtin {
     /// [`std::concat_idents!`]: ../std/macro.concat_idents.html
     #[unstable(feature = "concat_idents_macro", issue = "29599")]
     #[macro_export]
+    #[cfg(dox)]
     macro_rules! concat_idents {
         ($($e:ident),*) => ({ /* compiler built-in */ })
     }
@@ -599,6 +602,7 @@ pub mod builtin {
     /// [`std::concat!`]: ../std/macro.concat.html
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
+    #[cfg(dox)]
     macro_rules! concat { ($($e:expr),*) => ({ /* compiler built-in */ }) }
 
     /// A macro which expands to the line number on which it was invoked.
@@ -608,6 +612,7 @@ pub mod builtin {
     /// [`std::line!`]: ../std/macro.line.html
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
+    #[cfg(dox)]
     macro_rules! line { () => ({ /* compiler built-in */ }) }
 
     /// A macro which expands to the column number on which it was invoked.
@@ -617,6 +622,7 @@ pub mod builtin {
     /// [`std::column!`]: ../std/macro.column.html
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
+    #[cfg(dox)]
     macro_rules! column { () => ({ /* compiler built-in */ }) }
 
     /// A macro which expands to the file name from which it was invoked.
@@ -626,6 +632,7 @@ pub mod builtin {
     /// [`std::file!`]: ../std/macro.file.html
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
+    #[cfg(dox)]
     macro_rules! file { () => ({ /* compiler built-in */ }) }
 
     /// A macro which stringifies its argument.
@@ -635,6 +642,7 @@ pub mod builtin {
     /// [`std::stringify!`]: ../std/macro.stringify.html
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
+    #[cfg(dox)]
     macro_rules! stringify { ($t:tt) => ({ /* compiler built-in */ }) }
 
     /// Includes a utf8-encoded file as a string.
@@ -644,6 +652,7 @@ pub mod builtin {
     /// [`std::include_str!`]: ../std/macro.include_str.html
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
+    #[cfg(dox)]
     macro_rules! include_str { ($file:expr) => ({ /* compiler built-in */ }) }
 
     /// Includes a file as a reference to a byte array.
@@ -653,6 +662,7 @@ pub mod builtin {
     /// [`std::include_bytes!`]: ../std/macro.include_bytes.html
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
+    #[cfg(dox)]
     macro_rules! include_bytes { ($file:expr) => ({ /* compiler built-in */ }) }
 
     /// Expands to a string that represents the current module path.
@@ -662,6 +672,7 @@ pub mod builtin {
     /// [`std::module_path!`]: ../std/macro.module_path.html
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
+    #[cfg(dox)]
     macro_rules! module_path { () => ({ /* compiler built-in */ }) }
 
     /// Boolean evaluation of configuration flags.
@@ -671,6 +682,7 @@ pub mod builtin {
     /// [`std::cfg!`]: ../std/macro.cfg.html
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
+    #[cfg(dox)]
     macro_rules! cfg { ($($cfg:tt)*) => ({ /* compiler built-in */ }) }
 
     /// Parse a file as an expression or an item according to the context.
@@ -680,5 +692,6 @@ pub mod builtin {
     /// [`std::include!`]: ../std/macro.include.html
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
+    #[cfg(dox)]
     macro_rules! include { ($file:expr) => ({ /* compiler built-in */ }) }
 }