summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-24 09:35:35 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-24 09:35:35 +0800
commit781e7852dafeef9e807648db3d3ce9b853490661 (patch)
tree77f810973eb02693cddc852d06813f29bf18d46d /src/main.cpp
parent262563ff10b0c2f34649e5177ee8673cc874ae85 (diff)
downloadmrust-781e7852dafeef9e807648db3d3ce9b853490661.tar.gz
HIR Expand - Add a reborrow pass (inserts &mut* on by-value &mut
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 14fa1c2e..67083720 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -228,6 +228,9 @@ int main(int argc, char *argv[])
CompilePhaseV("Expand HIR Calls", [&]() {
HIR_Expand_UfcsEverything(*hir_crate);
});
+ 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);