aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2025-04-04 14:21:00 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2025-04-14 08:03:49 +0000
commit688b8d8b0e24aa7e2a7f741355d696f60337f956 (patch)
treea86730058753d21980b7127fd1f4997ae9097b3a /gcc
parent64d4e0f1e587d167f7734acad8dbf48be1e33fa3 (diff)
downloadgcc-688b8d8b0e24aa7e2a7f741355d696f60337f956.zip
gcc-688b8d8b0e24aa7e2a7f741355d696f60337f956.tar.gz
gcc-688b8d8b0e24aa7e2a7f741355d696f60337f956.tar.bz2
session: Desugar question mark operator after expansion instead.
gcc/rust/ChangeLog: * rust-session-manager.cc (Session::compile_crate): Call the visitor later in the pipeline.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/rust-session-manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc
index cbdc8ba..5563d10 100644
--- a/gcc/rust/rust-session-manager.cc
+++ b/gcc/rust/rust-session-manager.cc
@@ -611,7 +611,6 @@ Session::compile_crate (const char *filename)
return;
AST::CollectLangItems ().go (parsed_crate);
- AST::DesugarQuestionMark ().go (parsed_crate);
auto name_resolution_ctx = Resolver2_0::NameResolutionContext ();
// expansion pipeline stage
@@ -619,6 +618,7 @@ Session::compile_crate (const char *filename)
expansion (parsed_crate, name_resolution_ctx);
AST::DesugarForLoops ().go (parsed_crate);
+ AST::DesugarQuestionMark ().go (parsed_crate);
rust_debug ("\033[0;31mSUCCESSFULLY FINISHED EXPANSION \033[0m");
if (options.dump_option_enabled (CompileOptions::EXPANSION_DUMP))