diff options
| author | Marijn Haverbeke <[email protected]> | 2011-03-24 16:33:20 +0100 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-31 14:41:39 +0000 |
| commit | e7e6f396d888574e7184119818ac3300f10aacbf (patch) | |
| tree | 143c2c918a5123d6ed07b8ee61909981d3aa47e5 /src/comp/driver/rustc.rs | |
| parent | Tweak build command on rustc. (diff) | |
| download | rust-e7e6f396d888574e7184119818ac3300f10aacbf.tar.xz rust-e7e6f396d888574e7184119818ac3300f10aacbf.zip | |
Preserve comments when pretty-printing.
The patch also includes a number of smaller fixes to the
pretty-printer that were encountered on the way.
Diffstat (limited to 'src/comp/driver/rustc.rs')
| -rw-r--r-- | src/comp/driver/rustc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index 4c6da407..9ab21622 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -77,7 +77,7 @@ impure fn pretty_print_input(session.session sess, auto def = tup(0, 0); auto p = front.parser.new_parser(sess, env, def, input); auto crate = front.parser.parse_crate_from_source_file(p); - pretty.pprust.print_ast(crate.node.module, std.io.stdout()); + pretty.pprust.print_file(crate.node.module, input, std.io.stdout()); } fn warn_wrong_compiler() { |