rustc_parse::validate_attr

Function check_attribute_safety

Source
pub fn check_attribute_safety(
    psess: &ParseSess,
    safety: AttributeSafety,
    attr: &Attribute,
)