rustc_attr_parsing

Function cfg_matches

Source
pub fn cfg_matches(
    cfg: &MetaItemInner,
    sess: &Session,
    lint_node_id: NodeId,
    features: Option<&Features>,
) -> bool
Expand description

Tests if a cfg-pattern matches the cfg set