Rollup merge of #46416 - liigo:cfg-macro, r=steveklabnik

doc: macro `cfg!` evaluating at compile-time
This commit is contained in:
Guillaume Gomez 2017-12-07 23:59:00 +01:00 committed by GitHub
commit 912def328f
2 changed files with 2 additions and 2 deletions

View File

@ -736,7 +736,7 @@ macro_rules! include_bytes { ($file:expr) => ({ /* compiler built-in */ }) }
#[cfg(dox)]
macro_rules! module_path { () => ({ /* compiler built-in */ }) }
/// Boolean evaluation of configuration flags.
/// Boolean evaluation of configuration flags, at compile-time.
///
/// For more information, see the documentation for [`std::cfg!`].
///

View File

@ -631,7 +631,7 @@ macro_rules! include_bytes { ($file:expr) => ({ /* compiler built-in */ }) }
#[macro_export]
macro_rules! module_path { () => ({ /* compiler built-in */ }) }
/// Boolean evaluation of configuration flags.
/// Boolean evaluation of configuration flags, at compile-time.
///
/// In addition to the `#[cfg]` attribute, this macro is provided to allow
/// boolean expression evaluation of configuration flags. This frequently