Rollup merge of #46416 - liigo:cfg-macro, r=steveklabnik
doc: macro `cfg!` evaluating at compile-time
This commit is contained in:
commit
912def328f
@ -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!`].
|
||||
///
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user