{"ast_node_type":"other","tokens":[{"end":95,"kind":"keyword","start":0,"text":"self.ecx.discriminant_for_variant(enum_ty_layout.ty,"}]}
            self.ecx.discriminant_for_variant(enum_ty_layout.ty, variant_index).discard_err()?;
        let discr_value =
        Some(discr_value.to_scalar())