From 1c0b0547f24ccd8a2b8bc619879cb39fcaf612f9 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 8 Aug 2016 17:22:59 +0800 Subject: HIR Expand UFCS - Pass that replaces all call types with path-based calls --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 24690779..2316358d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -185,6 +185,10 @@ int main(int argc, char *argv[]) CompilePhaseV("Expand HIR Closures", [&]() { HIR_Expand_Closures(*hir_crate); }); + // - And calls can be turned into UFCS + CompilePhaseV("Expand HIR Calls", [&]() { + HIR_Expand_UfcsEverything(*hir_crate); + }); // - Ensure that typeck worked (including Fn trait call insertion etc) CompilePhaseV("Typecheck Expressions (validate)", [&]() { Typecheck_Expressions_Validate(*hir_crate); -- cgit v1.2.3