Skip to content

Commit 63e7a8b

Browse files
committed
Mention visibility changes
1 parent 5fdf6b0 commit 63e7a8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

text/0000-struct-variants.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ them without trouble for a while.
105105
Change the `Status` of the `struct_variant` feature from `Active` to
106106
`Accepted`.
107107

108+
The fields of struct variants use the same style of privacy as normal struct
109+
fields - they're private unless tagged `pub`. This is inconsistent with tuple
110+
variants, where the fields have inherited visibility. Struct variant fields
111+
will be changed to have inhereted privacy, and `pub` will no longer be allowed.
112+
108113
# Drawbacks
109114

110115
Adding formal support for a feature increases the maintenance burden of rustc.

0 commit comments

Comments
 (0)