about summary refs log tree commit diff
path: root/src/comp/driver
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-04-25 12:15:55 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-04-25 12:15:55 -0700
commite102413aadf4cb0e2740b26d249a710ad98cbd14 (patch)
tree6c47e65fddf38f01b3a1b32259ca70d595c2bef5 /src/comp/driver
parentb258060a94e629d3281697cedfa6620f5e75b0c3 (diff)
rustc: Pass a "type context" around instead of directly passing the type store; prep for removing type annotations
Diffstat (limited to 'src/comp/driver')
-rw-r--r--src/comp/driver/rustc.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs
index afef226e27f..eabf03102e2 100644
--- a/src/comp/driver/rustc.rs
+++ b/src/comp/driver/rustc.rs
@@ -73,13 +73,13 @@ fn compile_input(session.session sess,
     crate = resolve.resolve_crate(sess, crate);
     capture.check_for_captures(sess, crate);
 
-    auto tystore = ty.mk_type_store();
-    auto typeck_result = typeck.check_crate(sess, tystore, crate);
+    auto ty_cx = ty.mk_ctxt();
+    auto typeck_result = typeck.check_crate(sess, ty_cx, crate);
     crate = typeck_result._0;
     auto type_cache = typeck_result._1;
     // FIXME: uncomment once typestate_check works
     // crate = typestate_check.check_crate(crate);
-    trans.trans_crate(sess, crate, tystore, type_cache, output, shared,
+    trans.trans_crate(sess, crate, ty_cx, type_cache, output, shared,
                       optimize, verify, ot);
 }