diff options
| author | Brian Anderson <andersrb@gmail.com> | 2011-05-11 23:04:16 -0400 |
|---|---|---|
| committer | Brian Anderson <andersrb@gmail.com> | 2011-05-11 23:04:16 -0400 |
| commit | a459bcd12722ee722176dff8782d50b9536067bc (patch) | |
| tree | 5223f42668991de283cfe99e5ee7ce9e93f20062 /src/comp/driver | |
| parent | 531515d7ae3c9cf9addd47b17db951f9fd8635ed (diff) | |
| download | rust-a459bcd12722ee722176dff8782d50b9536067bc.tar.gz rust-a459bcd12722ee722176dff8782d50b9536067bc.zip | |
Give the lexer a session so that it can fail more informatively
Diffstat (limited to 'src/comp/driver')
| -rw-r--r-- | src/comp/driver/rustc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index 049e74284fe..1c9698bd4cd 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -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) { |
