rustc_attr::builtin

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.