rustc_attr_parsing::attributes::deprecation

Function find_deprecation

Source
pub fn find_deprecation(
    sess: &Session,
    features: &Features,
    attrs: &[impl AttributeExt],
) -> Option<(Deprecation, Span)>
Expand description

Finds the deprecation attribute. None if none exists.