rustc_attr::builtin

Function parse_unstability

Source
fn parse_unstability(
    sess: &Session,
    attr: &Attribute,
) -> 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.