parent
71da1c21eb
commit
6ff04ffdfe
1 changed files with 14 additions and 6 deletions
|
|
@ -325,9 +325,10 @@ pub mod builtin {
|
|||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[macro_export]
|
||||
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.
|
||||
///
|
||||
|
|
@ -348,7 +349,10 @@ pub mod builtin {
|
|||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[macro_export]
|
||||
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.
|
||||
///
|
||||
|
|
@ -400,7 +404,8 @@ pub mod builtin {
|
|||
#[unstable(feature = "concat_idents_macro", issue = "29599")]
|
||||
#[macro_export]
|
||||
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.
|
||||
|
|
@ -420,7 +425,10 @@ pub mod builtin {
|
|||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[macro_export]
|
||||
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.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue