Skip to content

Commit 5fb06c9

Browse files
committed
session manager: Call into DesugarForLoops
gcc/rust/ChangeLog: * rust-session-manager.cc (Session::compile_crate): Call the visitor.
1 parent 0d4b15c commit 5fb06c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gcc/rust/rust-session-manager.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "rust-session-manager.h"
2020
#include "rust-collect-lang-items.h"
21+
#include "rust-desugar-for-loops.h"
2122
#include "rust-diagnostics.h"
2223
#include "rust-hir-pattern-analysis.h"
2324
#include "rust-immutable-name-resolution-context.h"
@@ -614,6 +615,9 @@ Session::compile_crate (const char *filename)
614615
// expansion pipeline stage
615616

616617
expansion (parsed_crate, name_resolution_ctx);
618+
619+
AST::DesugarForLoops ().go (parsed_crate);
620+
617621
rust_debug ("\033[0;31mSUCCESSFULLY FINISHED EXPANSION \033[0m");
618622
if (options.dump_option_enabled (CompileOptions::EXPANSION_DUMP))
619623
{

0 commit comments

Comments
 (0)