aboutsummaryrefslogtreecommitdiff
path: root/src/comp/driver/rustc.rs
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <[email protected]>2011-04-11 15:35:01 -0400
committerRafael Ávila de Espíndola <[email protected]>2011-04-11 15:35:01 -0400
commitcca6335c26ce3ddacafd3e6079dc56c842856c3c (patch)
tree909b80973fb4aa6b8dd6a486aa6bf207945218dc /src/comp/driver/rustc.rs
parentTry to fix the windows build. (diff)
downloadrust-cca6335c26ce3ddacafd3e6079dc56c842856c3c.tar.xz
rust-cca6335c26ce3ddacafd3e6079dc56c842856c3c.zip
Implement the "attempted dynamic environment-capture" error in rustc.
Diffstat (limited to 'src/comp/driver/rustc.rs')
-rw-r--r--src/comp/driver/rustc.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs
index c2f63368..9b2d88e8 100644
--- a/src/comp/driver/rustc.rs
+++ b/src/comp/driver/rustc.rs
@@ -6,6 +6,7 @@ import front.token;
import front.eval;
import middle.trans;
import middle.resolve;
+import middle.capture;
import middle.ty;
import middle.typeck;
import middle.typestate_check;
@@ -67,6 +68,7 @@ impure fn compile_input(session.session sess,
if (parse_only) {ret;}
crate = creader.read_crates(sess, crate, library_search_paths);
crate = resolve.resolve_crate(sess, crate);
+ capture.check_for_captures(sess, crate);
auto typeck_result = typeck.check_crate(sess, crate);
crate = typeck_result._0;
auto type_cache = typeck_result._1;