rustc_attr::builtin

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.