rustc_attr_parsing::attributes::stability

Function parse_unstability

Source
fn parse_unstability(
    sess: &Session,
    attr: &impl AttributeExt,
) -> Option<(Symbol, StabilityLevel)>
Expand description

Read the content of a unstable/rustc_const_unstable/rustc_default_body_unstable attribute, and return the feature name and its stability information.