Skip to content

Commit

Permalink
session manager: Call into DesugarForLoops
Browse files Browse the repository at this point in the history
gcc/rust/ChangeLog:

	* rust-session-manager.cc (Session::compile_crate): Call the visitor.
  • Loading branch information
CohenArthur committed Jan 29, 2025
1 parent 258e3a5 commit 6977a54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gcc/rust/rust-session-manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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))
{
Expand Down

0 comments on commit 6977a54

Please sign in to comment.