pub(crate) fn invalid_derive_target( ctx: &DiagnosticsContext<'_, '_>, d: &InvalidDeriveTarget, ) -> Diagnostic