about summary refs log tree commit diff
path: root/src/comp/driver
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2011-04-22 11:23:49 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-04-28 13:26:19 -0700
commit34dae82b484cd59067aeb102feb643da83cba2be (patch)
treeba9e4b14670e7170d4901392a52fe7519b0551cc /src/comp/driver
parentf61e77e74523ca7a4b1bf8add9ecb51dfe2a1663 (diff)
downloadrust-34dae82b484cd59067aeb102feb643da83cba2be.tar.gz
rust-34dae82b484cd59067aeb102feb643da83cba2be.zip
Add a session field to ty_ctxt and change an err to span_err
I changed instantiate to print out a more helpful error message,
which required passing it a session argument. To avoid
threading extra arguments through a lot of functions,
I added a session field to ty_ctxt.
Diffstat (limited to 'src/comp/driver')
-rw-r--r--src/comp/driver/rustc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs
index c321b3a0973..584d81ad7f2 100644
--- a/src/comp/driver/rustc.rs
+++ b/src/comp/driver/rustc.rs
@@ -80,8 +80,8 @@ fn compile_input(session.session sess,
     crate = resolve.resolve_crate(sess, crate);
     capture.check_for_captures(sess, crate);
 
-    auto ty_cx = ty.mk_ctxt();
-    auto typeck_result = typeck.check_crate(sess, ty_cx, crate);
+    auto ty_cx = ty.mk_ctxt(sess);
+    auto typeck_result = typeck.check_crate(ty_cx, crate);
     crate = typeck_result._0;
     auto type_cache = typeck_result._1;
     // FIXME: uncomment once typestate_check works