diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-04-15 18:02:58 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-04-16 08:12:43 -0700 |
| commit | 5cfbc0e7aeefd30611213da33307723bcb490ac6 (patch) | |
| tree | 5f17e12ce60e5694f67204d83930917a4e6df729 /src/libsyntax/print | |
| parent | 83351fa02e08caa8fb8017254cc6e7c99fc65d2b (diff) | |
| download | rust-5cfbc0e7aeefd30611213da33307723bcb490ac6.tar.gz rust-5cfbc0e7aeefd30611213da33307723bcb490ac6.zip | |
rustc: Remove private enum variants
This removes the `priv` keyword from the language and removes private enum variants as a result. The remaining use cases of private enum variants were all updated to be a struct with one private field that is a private enum. RFC: 0006-remove-priv Closes #13535
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index f2f0df00ee4..53b6c09e5a3 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -230,7 +230,6 @@ pub fn variant_to_str(var: &ast::Variant) -> ~str { pub fn visibility_qualified(vis: ast::Visibility, s: &str) -> ~str { match vis { - ast::Private => format!("priv {}", s), ast::Public => format!("pub {}", s), ast::Inherited => s.to_owned() } @@ -731,7 +730,6 @@ impl<'a> State<'a> { pub fn print_visibility(&mut self, vis: ast::Visibility) -> IoResult<()> { match vis { - ast::Private => self.word_nbsp("priv"), ast::Public => self.word_nbsp("pub"), ast::Inherited => Ok(()) } |
