diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-08-03 13:58:14 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-08-03 15:02:53 -0700 |
| commit | a805a1fb37443601819604954510cb312a724fe9 (patch) | |
| tree | ea0c58d28b930856c147829de8ed8590ad2a7cab /src/libsyntax/ext | |
| parent | 0c623c4474f439c0bb85b7f91ae663d9584e7973 (diff) | |
rustc: Add the notion of inherited visibility
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/pipes/pipec.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/ext/qquote.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/tt/earley_parser.rs | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs index 81c8ba9da50..375ee81faa9 100644 --- a/src/libsyntax/ext/pipes/pipec.rs +++ b/src/libsyntax/ext/pipes/pipec.rs @@ -437,7 +437,6 @@ impl parse_utils of ext_ctxt_parse_utils for ext_ctxt { @(copy s), self.cfg(), ~[], - ast::public, self.parse_sess()); alt res { some(ast) { ast } diff --git a/src/libsyntax/ext/qquote.rs b/src/libsyntax/ext/qquote.rs index ec0b69d652c..87ecf93aa3c 100644 --- a/src/libsyntax/ext/qquote.rs +++ b/src/libsyntax/ext/qquote.rs @@ -183,7 +183,7 @@ fn parse_expr(p: parser) -> @ast::expr { p.parse_expr() } fn parse_pat(p: parser) -> @ast::pat { p.parse_pat(true) } fn parse_item(p: parser) -> @ast::item { - alt p.parse_item(~[], ast::public) { + alt p.parse_item(~[]) { some(item) { item } none { fail ~"parse_item: parsing an item failed"; } } diff --git a/src/libsyntax/ext/tt/earley_parser.rs b/src/libsyntax/ext/tt/earley_parser.rs index 6930c09e7ce..dd29ce04eeb 100644 --- a/src/libsyntax/ext/tt/earley_parser.rs +++ b/src/libsyntax/ext/tt/earley_parser.rs @@ -320,7 +320,7 @@ fn parse(sess: parse_sess, cfg: ast::crate_cfg, rdr: reader, ms: ~[matcher]) fn parse_nt(p: parser, name: ~str) -> nonterminal { alt name { - ~"item" { alt p.parse_item(~[], ast::public) { + ~"item" { alt p.parse_item(~[]) { some(i) { token::nt_item(i) } none { p.fatal(~"expected an item keyword") } }} |
