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