pub(crate) fn variances_of<'tcx>( tcx: TyCtxt<'tcx>, def_id: DefId, _cycle: Cycle<'tcx>, err: Diag<'_>, ) -> &'tcx [Variance]