summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-08 00:05:28 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-08 00:05:28 +0800
commit526326f5c08a09df02bf5c7234220ce008cd956a (patch)
treefc190290e8b9a62d8a31e72cbbe2b2b1a6928d95
parent21976eb952f0abec93dcc8abdd9455d1ab9a6d86 (diff)
downloadmrust-526326f5c08a09df02bf5c7234220ce008cd956a.tar.gz
main - Enable closure expansion (currently crashes)
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2d4e4a4c..3aeee63d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -17,6 +17,7 @@
#include "resolve/main_bindings.hpp"
#include "hir_conv/main_bindings.hpp"
#include "hir_typeck/main_bindings.hpp"
+#include "hir_expand/main_bindings.hpp"
#include "expand/cfg.hpp"
@@ -179,6 +180,9 @@ int main(int argc, char *argv[])
CompilePhaseV("Typecheck Expressions", [&]() {
Typecheck_Expressions(*hir_crate);
});
+ CompilePhaseV("Expand HIR Closures", [&]() {
+ HIR_Expand_Closures(*hir_crate);
+ });
CompilePhaseV("Typecheck Expressions (validate)", [&]() {
Typecheck_Expressions_Validate(*hir_crate);
});