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
This commit is contained in:
parent
dddd7d8f44
commit
aed40fbcd8
6 changed files with 61 additions and 119 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue