]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
session manager: Call into DesugarForLoops
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 22 Jan 2025 14:14:45 +0000 (14:14 +0000)
committerCohenArthur <arthur.cohen@embecosm.com>
Tue, 4 Feb 2025 15:09:51 +0000 (15:09 +0000)
gcc/rust/ChangeLog:

* rust-session-manager.cc (Session::compile_crate): Call the visitor.

gcc/rust/rust-session-manager.cc

index b4b95167c528dd74a13206a67760182cd215986d..e8ec155f8e219660d70161a10096bcd120a8c785 100644 (file)
@@ -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))
     {