Function rustc_attr::cfg_matches
source ยท pub fn cfg_matches(
cfg: &MetaItem,
sess: &Session,
lint_node_id: NodeId,
features: Option<&Features>,
) -> bool
Expand description
Tests if a cfg-pattern matches the cfg set
pub fn cfg_matches(
cfg: &MetaItem,
sess: &Session,
lint_node_id: NodeId,
features: Option<&Features>,
) -> bool
Tests if a cfg-pattern matches the cfg set