}

fn parse_tuple_variant(
    ident: Ident,
    path_name: Option<String>,
    fields: Iter<'_, Field>,
) -> TokenStream {
    if fields.clone().count() != 1 {
        abort!(Diagnostic::new(
            Level::Error,
            "Tuple variants may only have a single field.".into()
        ))