https://gcc.gnu.org/g:0c14d95298548b7bb0c504f28cf5c18111285db8
commit r15-8790-g0c14d95298548b7bb0c504f28cf5c18111285db8 Author: Arthur Cohen <arthur.co...@embecosm.com> Date: Wed Jan 22 14:14:45 2025 +0000 gccrs: session manager: Call into DesugarForLoops gcc/rust/ChangeLog: * rust-session-manager.cc (Session::compile_crate): Call the visitor. Diff: --- gcc/rust/rust-session-manager.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc index 3adde297a4ec..fabb3d426cd3 100644 --- a/gcc/rust/rust-session-manager.cc +++ b/gcc/rust/rust-session-manager.cc @@ -18,6 +18,7 @@ #include "rust-session-manager.h" #include "rust-collect-lang-items.h" +#include "rust-desugar-for-loops.h" #include "rust-diagnostics.h" #include "rust-hir-pattern-analysis.h" #include "rust-immutable-name-resolution-context.h" @@ -614,6 +615,9 @@ Session::compile_crate (const char *filename) // expansion pipeline stage expansion (parsed_crate, name_resolution_ctx); + + AST::DesugarForLoops ().go (parsed_crate); + rust_debug ("\033[0;31mSUCCESSFULLY FINISHED EXPANSION \033[0m"); if (options.dump_option_enabled (CompileOptions::EXPANSION_DUMP)) {