should_allow_deprecated

Function should_allow_deprecated 

Source
fn should_allow_deprecated(input: &DeriveInput) -> bool
Expand description

Determine if an #[allow(deprecated)] should be added to the derived impl.

This should happen if the derive input or an enum variant it contains has one of:

  • #[deprecated]
  • #[allow(deprecated)]