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