Function rustc_attr::find_stability

source ยท
pub fn find_stability(
    sess: &Session,
    attrs: &[Attribute],
    item_sp: Span
) -> Option<(Stability, Span)>
Expand description

Collects stability info from stable/unstable/rustc_allowed_through_unstable_modules attributes in attrs. Returns None if no stability attributes are found.