diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-27 15:39:48 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-31 15:47:36 -0700 |
| commit | 3c76f4ac8ddca0fb0809b00e3e448f57cf1931b7 (patch) | |
| tree | c00e4a730162f2b18c90971183ae28a746bbf4f8 /src/libsyntax/print | |
| parent | c034d0c854b9e80dc5d20ebe152eee8ce96ed544 (diff) | |
| download | rust-3c76f4ac8ddca0fb0809b00e3e448f57cf1931b7.tar.gz rust-3c76f4ac8ddca0fb0809b00e3e448f57cf1931b7.zip | |
syntax: Switch field privacy as necessary
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pp.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/print/pp.rs b/src/libsyntax/print/pp.rs index 4996c1e96a8..7b64d0293cc 100644 --- a/src/libsyntax/print/pp.rs +++ b/src/libsyntax/print/pp.rs @@ -257,7 +257,7 @@ pub fn mk_printer(out: ~io::Writer, linewidth: uint) -> Printer { * called 'print'. */ pub struct Printer { - out: ~io::Writer, + pub out: ~io::Writer, buf_len: uint, margin: int, // width of lines we're constrained to space: int, // number of spaces left on line diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index b410e0c7169..98a3ff30916 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -54,7 +54,7 @@ pub struct CurrentCommentAndLiteral { } pub struct State<'a> { - s: pp::Printer, + pub s: pp::Printer, cm: Option<&'a CodeMap>, intr: Rc<token::IdentInterner>, comments: Option<Vec<comments::Comment> >, |
