[][src]Function syntax::attr::builtin::eval_condition

pub fn eval_condition(
    cfg: &MetaItem,
    sess: &ParseSess,
    eval: &mut impl FnMut(&MetaItem) -> bool
) -> bool
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Evaluate a cfg-like condition (with any and all), using eval to evaluate individual items.