-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Require stability annotations on fields of tuple variants #30898
Conversation
Hopefully it will be better in 2017, after the next snapshot |
This wasn't done in #29083 because attributes weren't parsed on fields of tuple variant back then. r? @alexcrichton
How about fields of struct-like variants? |
They required annotations already. |
I figured, but I didn't get any errors when I forgot to include them in On Fri, Mar 4, 2016 at 7:18 PM, Vadim Petrochenkov <notifications@github.com
|
@petrochenkov see durka@003120a (but it compiled before that commit too) |
It compiled because |
Oh, I see. Makes sense. On Fri, Mar 4, 2016 at 7:43 PM, Vadim Petrochenkov <notifications@github.com
|
Unfortunately, annotations on variant fields are not checked properly yet, so the fields in durka@003120a may be insta-stable (AFAIK, it's the first occurrence of named variant fields in the staged API). |
How could you name them without using the unstable variants and the unstable enum itself? |
You probably couldn't. This is a concern for (hypothetical) stable variants with unstable fields. |
This wasn't done in #29083 because attributes weren't parsed on fields of tuple variant back then.
r? @alexcrichton