pub fn parse_rust_deprecated(attr: &Attribute) -> Option<LifecycleSpec>Expand description
Extract lifecycle info from a #[deprecated] attribute.
Handles all three forms: #[deprecated], #[deprecated = "msg"],
and #[deprecated(since = "...", note = "...")]. Returns None if the
attribute is not #[deprecated].