Skip to content
This repository was archived by the owner on Oct 14, 2021. It is now read-only.

Enable trait derivation for tuple structs with a single, simply-typed field #6

Closed
wants to merge 4 commits into from

Conversation

kkohbrok
Copy link
Member

@kkohbrok kkohbrok commented Aug 10, 2021

Fixes #5 to a certain degree in that it is restricted to single-field tuple-structs with simple types.

Concretely, parse_ast now checks what kind of enum it is parsing and might error out if it isn't a repr enum or one as described above. I have also move the preparation of the TokenStream2 vectors to where they are used to avoid bloating the Enum struct too much.

@kkohbrok kkohbrok added the enhancement New feature or request label Aug 10, 2021
@kkohbrok kkohbrok self-assigned this Aug 10, 2021
@kkohbrok kkohbrok marked this pull request as ready for review August 11, 2021 06:48
@franziskuskiefer franziskuskiefer self-requested a review September 15, 2021 09:32
@franziskuskiefer
Copy link
Contributor

Closing this before archiving. Please re-open on https://github.com/RustCrypto/formats if you want to continue it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow trait derivation for tuple-struct style enums
2 participants