rustc_attr_parsing::attributes::stability

Function parse_stability

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

Read the content of a stable/rustc_const_stable attribute, and return the feature name and its stability information.