diff options
| author | bors <bors@rust-lang.org> | 2015-09-18 18:51:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-09-18 18:51:04 +0000 |
| commit | 72a10fa1d324609d6d946cd7437b1dd0d9dfe0a3 (patch) | |
| tree | 1772b465abffb822364a3b7257f282911de80fe6 /src/libsyntax/print/pprust.rs | |
| parent | dc1c7975b015c14d4c26f2b07ab2b64f5fc66d3c (diff) | |
| parent | a9cb51cf0cf8adc8188097c019daeaf10822d20f (diff) | |
| download | rust-72a10fa1d324609d6d946cd7437b1dd0d9dfe0a3.tar.gz rust-72a10fa1d324609d6d946cd7437b1dd0d9dfe0a3.zip | |
Auto merge of #28442 - nagisa:remove-enum-vis-field, r=alexcrichton
Followup on #28440 Do not merge before the referenced PR is merged. I will fix the PR once that is merged (or close if it is not)
Diffstat (limited to 'src/libsyntax/print/pprust.rs')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 1d22c83122e..6de6d32dfb3 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1507,7 +1507,6 @@ impl<'a> State<'a> { } pub fn print_variant(&mut self, v: &ast::Variant) -> io::Result<()> { - try!(self.print_visibility(v.node.vis)); match v.node.kind { ast::TupleVariantKind(ref args) => { try!(self.print_ident(v.node.name)); @@ -3139,11 +3138,10 @@ mod tests { kind: ast::TupleVariantKind(Vec::new()), id: 0, disr_expr: None, - vis: ast::Public, }); let varstr = variant_to_string(&var); - assert_eq!(varstr, "pub principal_skinner"); + assert_eq!(varstr, "principal_skinner"); } #[test] |
