#[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.
///
#[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.
///
#[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.
#[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.
///