pub fn find_const_stability(
sess: &Session,
attrs: &[impl AttributeExt],
item_sp: Span,
) -> Option<(ConstStability, Span)>
Expand description
Collects stability info from rustc_const_stable
/rustc_const_unstable
/rustc_promotable
attributes in attrs
. Returns None
if no stability attributes are found.