diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-08 17:22:59 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-08 17:22:59 +0800 |
commit | 1c0b0547f24ccd8a2b8bc619879cb39fcaf612f9 (patch) | |
tree | e2106d584e44d9c2f756cb4b816c3ae8929bec95 /src/main.cpp | |
parent | a00a797c62e7432b8a85f0bd01e387aa949f6ed3 (diff) | |
download | mrust-1c0b0547f24ccd8a2b8bc619879cb39fcaf612f9.tar.gz |
HIR Expand UFCS - Pass that replaces all call types with path-based calls
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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);
|