aboutsummaryrefslogtreecommitdiff
path: root/src/comp/driver/rustc.rs
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-03-09 11:41:50 +0100
committerunknown <graydon@.(none)>2011-03-09 16:15:55 -0800
commitaed40fbcd8e81cc1ef7a51b40b76b4631cba299e (patch)
treeb9fe1cf0f40a6f54ab8b6522a3ed6677b127bb02 /src/comp/driver/rustc.rs
parentAdd stdout_writer and string_writer to std.io (diff)
downloadrust-aed40fbcd8e81cc1ef7a51b40b76b4631cba299e.tar.xz
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/rustc.rs')
-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 7ad0cdc7..6366bcaf 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() {