fn variant_info_for_generator<'tcx>(
    cx: &LayoutCx<'tcx, TyCtxt<'tcx>>,
    layout: TyAndLayout<'tcx>,
    def_id: DefId,
    substs: SubstsRef<'tcx>
) -> (Vec<VariantInfo>, Option<Size>)