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