about summary refs log tree commit diff
path: root/src/comp/driver
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-03-24 16:33:20 +0100
committerGraydon Hoare <graydon@mozilla.com>2011-03-31 14:41:39 +0000
commite7e6f396d888574e7184119818ac3300f10aacbf (patch)
tree143c2c918a5123d6ed07b8ee61909981d3aa47e5 /src/comp/driver
parentffc188a4dd9262750b3f95bb3b582577836740f2 (diff)
downloadrust-e7e6f396d888574e7184119818ac3300f10aacbf.tar.gz
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')
-rw-r--r--src/comp/driver/rustc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs
index 4c6da407b64..9ab216228a5 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() {