-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enum spread allocate #1080
Enum spread allocate #1080
Conversation
Also, I've been running |
@forgetso thanks for the PR! I'm gonna put this |
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Tue Feb 8 21:14:16 CET 2022 |
Closing since this will be made obsolete with #1217. Thanks for the PR though! |
This is my attempt to identify when an
enum
has derivedDefault
from its representation as asynstructure
for #1042.For exmaple, an
enum
like this would be allowed:But this one would fail:
enum Enum { A, B, C }
I don't know how to do this without using the
Default
derive. If you create the default value usingimpl
, thesynstructure
, contains no information about the default. Additionally, you cannot passimpl
into thesynstructure::Structure::new
.