about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-03-25 16:53:52 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-03-26 10:20:15 -0700
commit7de48419ee8f9ae0a41503e5e104709ea39bfe85 (patch)
tree6362ff55ac160b1f880eb9a405f3152574e23d1a /src/libsyntax/parse/parser.rs
parent104aaa44e8506cfaf2c00d6ca35dce93a8228545 (diff)
downloadrust-7de48419ee8f9ae0a41503e5e104709ea39bfe85.tar.gz
rust-7de48419ee8f9ae0a41503e5e104709ea39bfe85.zip
syntax: Permit visibility on tuple fields
This change is in preparation for #8122. Nothing is currently done with these
visibility qualifiers, they are just parsed and accepted by the compiler.

RFC: 0004-private-fields
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index adf3ac0e17d..9b12987361e 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -3985,7 +3985,7 @@ impl<'a> Parser<'a> {
                 let attrs = p.parse_outer_attributes();
                 let lo = p.span.lo;
                 let struct_field_ = ast::StructField_ {
-                    kind: UnnamedField,
+                    kind: UnnamedField(p.parse_visibility()),
                     id: ast::DUMMY_NODE_ID,
                     ty: p.parse_ty(false),
                     attrs: attrs,