about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorMichael Lamparski <diagonaldevice@gmail.com>2017-11-26 19:59:21 -0500
committerMichael Lamparski <diagonaldevice@gmail.com>2017-11-26 19:59:21 -0500
commit31b8a15e7026eb882aeda7b7b1c704f444da4e81 (patch)
treea6834fe51caba8d95855c8f05b567b3acc5dcc18 /src/libcore
parent6ff04ffdfe6e32b864347d721dccd266e7253ec8 (diff)
downloadrust-31b8a15e7026eb882aeda7b7b1c704f444da4e81.tar.gz
rust-31b8a15e7026eb882aeda7b7b1c704f444da4e81.zip
Update libcore macro stubs like libstd
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/macros.rs20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs
index 122baec8e58..6e3dbcbec9d 100644
--- a/src/libcore/macros.rs
+++ b/src/libcore/macros.rs
@@ -612,9 +612,10 @@ mod builtin {
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
     #[cfg(dox)]
-    macro_rules! format_args { ($fmt:expr, $($args:tt)*) => ({
-        /* compiler built-in */
-    }) }
+    macro_rules! format_args {
+        ($fmt:expr) => ({ /* compiler built-in */ });
+        ($fmt:expr, $($args:tt)*) => ({ /* compiler built-in */ });
+    }
 
     /// Inspect an environment variable at compile time.
     ///
@@ -624,7 +625,10 @@ mod builtin {
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
     #[cfg(dox)]
-    macro_rules! env { ($name:expr) => ({ /* compiler built-in */ }) }
+    macro_rules! env {
+        ($name:expr) => ({ /* compiler built-in */ });
+        ($name:expr,) => ({ /* compiler built-in */ });
+    }
 
     /// Optionally inspect an environment variable at compile time.
     ///
@@ -645,7 +649,8 @@ mod builtin {
     #[macro_export]
     #[cfg(dox)]
     macro_rules! concat_idents {
-        ($($e:ident),*) => ({ /* compiler built-in */ })
+        ($($e:ident),*) => ({ /* compiler built-in */ });
+        ($($e:ident,)*) => ({ /* compiler built-in */ });
     }
 
     /// Concatenates literals into a static string slice.
@@ -656,7 +661,10 @@ mod builtin {
     #[stable(feature = "rust1", since = "1.0.0")]
     #[macro_export]
     #[cfg(dox)]
-    macro_rules! concat { ($($e:expr),*) => ({ /* compiler built-in */ }) }
+    macro_rules! concat {
+        ($($e:expr),*) => ({ /* compiler built-in */ });
+        ($($e:expr,)*) => ({ /* compiler built-in */ });
+    }
 
     /// A macro which expands to the line number on which it was invoked.
     ///