diff options
| author | bors <bors@rust-lang.org> | 2014-04-16 08:16:35 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-04-16 08:16:35 -0700 |
| commit | 72869b6579154d7aa322ddd0f9e3d89fd8abe8c4 (patch) | |
| tree | 8c7b32c4ee341498f46345898c6882643145cb31 /src/libsyntax/parse/parser.rs | |
| parent | 12391df5b78a7a904112c0056aa28773abecb65d (diff) | |
| parent | a0347d5224977c8a271fbae64d084a5c5347d22b (diff) | |
| download | rust-72869b6579154d7aa322ddd0f9e3d89fd8abe8c4.tar.gz rust-72869b6579154d7aa322ddd0f9e3d89fd8abe8c4.zip | |
auto merge of #13547 : alexcrichton/rust/remove-priv, r=huonw
See [RFC 6](https://github.com/rust-lang/rfcs/blob/e0c741f1c6e372d0fd31c5978fcf8c7bd7c3e973/active/0006-remove-priv.md)
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 88480c1b336..634e1c77c6a 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -39,7 +39,7 @@ use ast::{MutImmutable, MutMutable, Mac_, MacInvocTT, Matcher, MatchNonterminal} use ast::{MatchSeq, MatchTok, Method, MutTy, BiMul, Mutability}; use ast::{NamedField, UnNeg, NoReturn, UnNot, P, Pat, PatEnum}; use ast::{PatIdent, PatLit, PatRange, PatRegion, PatStruct}; -use ast::{PatTup, PatUniq, PatWild, PatWildMulti, Private}; +use ast::{PatTup, PatUniq, PatWild, PatWildMulti}; use ast::{BiRem, Required}; use ast::{RetStyle, Return, BiShl, BiShr, Stmt, StmtDecl}; use ast::{StmtExpr, StmtSemi, StmtMac, StructDef, StructField}; @@ -3953,10 +3953,6 @@ impl<'a> Parser<'a> { let attrs = self.parse_outer_attributes(); - if self.eat_keyword(keywords::Priv) { - return self.parse_single_struct_field(Private, attrs); - } - if self.eat_keyword(keywords::Pub) { return self.parse_single_struct_field(Public, attrs); } @@ -3967,7 +3963,6 @@ impl<'a> Parser<'a> { // parse visiility: PUB, PRIV, or nothing fn parse_visibility(&mut self) -> Visibility { if self.eat_keyword(keywords::Pub) { Public } - else if self.eat_keyword(keywords::Priv) { Private } else { Inherited } } |
