Function inherit_deprecation

Source
fn inherit_deprecation(def_kind: DefKind) -> bool