about summary refs log tree commit diff
path: root/src/comp/driver
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-03-09 11:41:50 +0100
committerunknown <graydon@.(none)>2011-03-09 16:15:55 -0800
commitaed40fbcd8e81cc1ef7a51b40b76b4631cba299e (patch)
treeb9fe1cf0f40a6f54ab8b6522a3ed6677b127bb02 /src/comp/driver
parentdddd7d8f447215a88aa87f438d4f495cf54be84d (diff)
downloadrust-aed40fbcd8e81cc1ef7a51b40b76b4631cba299e.tar.gz
rust-aed40fbcd8e81cc1ef7a51b40b76b4631cba299e.zip
Have the pretty-printer take a writer stream as argument
It now uses a string writer to also fill in for
middle.ty.ast_ty_to_str
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 7ad0cdc74fd..6366bcafd2e 100644
--- a/src/comp/driver/rustc.rs
+++ b/src/comp/driver/rustc.rs
@@ -66,7 +66,7 @@ impure fn pretty_print_input(session.session sess,
                              str input) {
     auto p = front.parser.new_parser(sess, env, 0, input);
     auto crate = front.parser.parse_crate_from_source_file(p);
-    pretty.pprust.print_ast(crate.node.module);
+    pretty.pprust.print_ast(crate.node.module, std.io.stdout_writer());
 }
 
 fn warn_wrong_compiler() {