]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: session manager: Call into DesugarForLoops
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 22 Jan 2025 14:14:45 +0000 (14:14 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 24 Mar 2025 12:07:04 +0000 (13:07 +0100)
gcc/rust/ChangeLog:

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

gcc/rust/rust-session-manager.cc

index 3adde297a4ec1355bc4a73adf45a02b2dc0adc74..fabb3d426cd3fdbae798f37817cc29f10e2c822d 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))
     {