rustc_attr

Function eval_condition

Source
pub fn eval_condition(
    cfg: &MetaItemInner,
    sess: &Session,
    features: Option<&Features>,
    eval: &mut impl FnMut(Condition) -> bool,
) -> bool
Expand description

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