diff options
| author | bors <bors@rust-lang.org> | 2014-03-26 16:37:03 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-26 16:37:03 -0700 |
| commit | c83994e0f492d5e416537cb7ce1063662c0e44e7 (patch) | |
| tree | 637e049348dc8d3097a7c85df3c123dbcb9b93ae /src/libsyntax/parse/parser.rs | |
| parent | 533a5263279d177127607f1883b9a85824d5ef52 (diff) | |
| parent | 7de48419ee8f9ae0a41503e5e104709ea39bfe85 (diff) | |
auto merge of #13145 : alexcrichton/rust/flip-some-defaults, r=brson
This change prepares `rustc` to accept private fields by default. These changes will have to go through a snapshot before the rest of the changes can happen.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
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, |
