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