diff options
| author | Carol Nichols <carol.nichols@gmail.com> | 2015-04-29 22:43:47 -0400 |
|---|---|---|
| committer | Carol Nichols <carol.nichols@gmail.com> | 2015-04-29 22:47:10 -0400 |
| commit | 31b7001b49fe8ce2f3d6aed882b41e55da020ab6 (patch) | |
| tree | f55b0d5c324fb5e80763314297e16d98bcea4a33 | |
| parent | 899d4180ef052c3bd7598d18ad1e5af0bc57fc88 (diff) | |
| download | rust-31b7001b49fe8ce2f3d6aed882b41e55da020ab6.tar.gz rust-31b7001b49fe8ce2f3d6aed882b41e55da020ab6.zip | |
Remove mention of 'priv'; visibility is either PUB or nothing
| -rw-r--r-- | src/librustc_typeck/collect.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_typeck/collect.rs b/src/librustc_typeck/collect.rs index 6cb6df008c1..18d0031badb 100644 --- a/src/librustc_typeck/collect.rs +++ b/src/librustc_typeck/collect.rs @@ -899,7 +899,7 @@ fn convert_item(ccx: &CrateCtxt, it: &ast::Item) { if let ast::MethodImplItem(ref sig, _) = ii.node { // if the method specifies a visibility, use that, otherwise // inherit the visibility from the impl (so `foo` in `pub impl - // { fn foo(); }` is public, but private in `priv impl { fn + // { fn foo(); }` is public, but private in `impl { fn // foo(); }`). let method_vis = ii.vis.inherit_from(parent_visibility); Some((sig, ii.id, ii.ident, method_vis, ii.span)) diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index f76de1f04ce..a277dda6f0f 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -4772,7 +4772,7 @@ impl<'a> Parser<'a> { return self.parse_single_struct_field(Inherited, attrs); } - /// Parse visibility: PUB, PRIV, or nothing + /// Parse visibility: PUB or nothing fn parse_visibility(&mut self) -> PResult<Visibility> { if try!(self.eat_keyword(keywords::Pub)) { Ok(Public) } else { Ok(Inherited) } |
