[][src]Function rustc_typeck::collect::convert_variant

fn convert_variant(
    tcx: TyCtxt,
    variant_did: Option<LocalDefId>,
    ctor_did: Option<LocalDefId>,
    ident: Ident,
    discr: VariantDiscr,
    def: &VariantData,
    adt_kind: AdtKind,
    parent_did: LocalDefId
) -> VariantDef
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.