[][src]Function syntax::attr::builtin::find_stability

pub fn find_stability(
    sess: &ParseSess,
    attrs: &[Attribute],
    item_sp: Span
) -> (Option<Stability>, Option<ConstStability>)
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Collects stability info from all stability attributes in attrs. Returns None if no stability attributes are found.