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