Give the lexer a session so that it can fail more informatively
This commit is contained in:
parent
531515d7ae
commit
a459bcd127
4 changed files with 34 additions and 22 deletions
|
|
@ -123,7 +123,7 @@ fn pretty_print_input(session.session sess,
|
|||
auto def = tup(ast.local_crate, 0);
|
||||
auto p = front.parser.new_parser(sess, env, def, input, 0u);
|
||||
auto crate = front.parser.parse_crate_from_source_file(p);
|
||||
pretty.pprust.print_file(crate.node.module, input, std.IO.stdout());
|
||||
pretty.pprust.print_file(sess, crate.node.module, input, std.IO.stdout());
|
||||
}
|
||||
|
||||
fn version(str argv0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue