summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3aeee63d..70c2485b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -180,9 +180,11 @@ int main(int argc, char *argv[])
CompilePhaseV("Typecheck Expressions", [&]() {
Typecheck_Expressions(*hir_crate);
});
+ // - Now that all types are known, closures can be desugared
CompilePhaseV("Expand HIR Closures", [&]() {
HIR_Expand_Closures(*hir_crate);
});
+ // - Ensure that typeck worked (including Fn trait call insertion etc)
CompilePhaseV("Typecheck Expressions (validate)", [&]() {
Typecheck_Expressions_Validate(*hir_crate);
});
@@ -192,10 +194,6 @@ int main(int argc, char *argv[])
}
// Expand closures into items
- // - Now that all types are known, closures can be desugared
- CompilePhaseV("Lower Closures", [&]() {
- //ConvertHIR_Closures(hir_crate);
- });
// Lower expressions into MIR
CompilePhaseV("Lower MIR", [&]() {
//ConvertHIR_MIR(hir_crate);