diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-06 10:42:58 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-06 10:42:58 +0800 |
commit | 7bfcc4e4b149dad51728b68a7a24472573f4734a (patch) | |
tree | 6cd08c22a58e009795db353980792f035a2e6814 | |
parent | 8c4c592c977833ac41defcf78463b811ae14e1ca (diff) | |
download | mrust-7bfcc4e4b149dad51728b68a7a24472573f4734a.tar.gz |
main - Dump the HIR before typecheck validation pass
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index c97b4946..0dfb4405 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -289,15 +289,14 @@ int main(int argc, char *argv[]) CompilePhaseV("Expand HIR Reborrows", [&]() {
HIR_Expand_Reborrows(*hir_crate);
});
- // - Ensure that typeck worked (including Fn trait call insertion etc)
- CompilePhaseV("Typecheck Expressions (validate)", [&]() {
- Typecheck_Expressions_Validate(*hir_crate);
- });
-
CompilePhaseV("Dump HIR", [&]() {
::std::ofstream os (FMT(params.outfile << "_2_hir.rs"));
HIR_Dump( os, *hir_crate );
});
+ // - Ensure that typeck worked (including Fn trait call insertion etc)
+ CompilePhaseV("Typecheck Expressions (validate)", [&]() {
+ Typecheck_Expressions_Validate(*hir_crate);
+ });
if( params.last_stage == ProgramParams::STAGE_TYPECK ) {
return 0;
|