diff options
| author | Brian Anderson <[email protected]> | 2011-05-11 23:04:16 -0400 |
|---|---|---|
| committer | Brian Anderson <[email protected]> | 2011-05-11 23:04:16 -0400 |
| commit | a459bcd12722ee722176dff8782d50b9536067bc (patch) | |
| tree | 5223f42668991de283cfe99e5ee7ce9e93f20062 /src/comp/driver/rustc.rs | |
| parent | rustc: Represent types as uints. Cuts typechecking down from 14s to 12s. (diff) | |
| download | rust-a459bcd12722ee722176dff8782d50b9536067bc.tar.xz rust-a459bcd12722ee722176dff8782d50b9536067bc.zip | |
Give the lexer a session so that it can fail more informatively
Diffstat (limited to 'src/comp/driver/rustc.rs')
| -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 049e7428..1c9698bd 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) { |