-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] TryFromBuild derive support for enums
TODO: - Clean up repr computation - Support enums with fields - If we don't support enums with fields, enforce that - Should enum variants be considered "used" in the sense of dead code? It's possible to never construct an enum variant from Rust's perspective even though it is constructed via TryFromBytes. - Confirm that we reject uninhabited enums. Currently Rust doesn't let you put a repr on these enums, so we would reject them for lack of a repr, but we should probably have a more reliable check than that.
- Loading branch information
Showing
4 changed files
with
267 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.