diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-06-20 10:20:16 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-06-20 23:53:28 +0200 |
| commit | 854b3a9b73ca78551a8ca8a933e07a12a0e77aeb (patch) | |
| tree | 6ded6b6b33c32ae8af1e601b397195eb681a20a4 /src/comp/driver | |
| parent | 40db3aa6fbe2f0d8d7f9bb85a9fd47b8cca2938b (diff) | |
| download | rust-854b3a9b73ca78551a8ca8a933e07a12a0e77aeb.tar.gz rust-854b3a9b73ca78551a8ca8a933e07a12a0e77aeb.zip | |
Use ast_map in typeck, instead of building another index
Diffstat (limited to 'src/comp/driver')
| -rw-r--r-- | src/comp/driver/rustc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index 040b551a529..d265ac2aeee 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -85,7 +85,7 @@ fn compile_input(session::session sess, eval::env env, str input, auto d = time(time_passes, "resolution", bind resolve::resolve_crate(sess, ast_map, crate)); - auto ty_cx = ty::mk_ctxt(sess, d._0, d._1); + auto ty_cx = ty::mk_ctxt(sess, d._0, d._1, ast_map); time[()](time_passes, "typechecking", bind typeck::check_crate(ty_cx, crate)); if (sess.get_opts().run_typestate) { @@ -111,7 +111,7 @@ fn pretty_print_input(session::session sess, eval::env env, str input, case (ppm_typed) { auto amap = middle::ast_map::map_crate(*crate); auto d = resolve::resolve_crate(sess, amap, crate); - auto ty_cx = ty::mk_ctxt(sess, d._0, d._1); + auto ty_cx = ty::mk_ctxt(sess, d._0, d._1, amap); typeck::check_crate(ty_cx, crate); mode = ppaux::mo_typed(ty_cx); } |
