rustc_attr

Function find_body_stability

Source
pub fn find_body_stability(
    sess: &Session,
    attrs: &[Attribute],
) -> Option<(DefaultBodyStability, Span)>
Expand description

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