Require stability annotations on fields of tuple variants#30898
Require stability annotations on fields of tuple variants#30898bors merged 1 commit intorust-lang:masterfrom
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