rustc_parse::validate_attr

Function is_attr_template_compatible

Source
fn is_attr_template_compatible(
    template: &AttributeTemplate,
    meta: &MetaItemKind,
) -> bool
Expand description

Checks that the given meta-item is compatible with this AttributeTemplate.