/// leads to less duplicated code.
///
/// The syntax given to this macro is the same syntax as the `cfg`
- /// attribute.
+ /// attribute (so `$cfg:meta` is not _exactly_ correct).
///
/// # Examples
///
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[macro_export]
- macro_rules! cfg { ($cfg:tt) => ({ /* compiler built-in */ }) }
+ macro_rules! cfg { ($cfg:meta) => ({ /* compiler built-in */ }) }
/// Parse the current given file as an expression.
///
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[macro_export]
- macro_rules! include { ($cfg:tt) => ({ /* compiler built-in */ }) }
+ macro_rules! include { ($file:expr) => ({ /* compiler built-in */ }) }
}