rustc_attr

Function find_deprecation

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

Finds the deprecation attribute. None if none exists.