rustc_hir_analysis::collect

Function lower_variant

source
fn lower_variant(
    tcx: TyCtxt<'_>,
    variant_did: Option<LocalDefId>,
    ident: Ident,
    discr: VariantDiscr,
    def: &VariantData<'_>,
    adt_kind: AdtKind,
    parent_did: LocalDefId,
) -> VariantDef