Skip to content

Commit 5de1415

Browse files
powerboat9philberty
authored andcommitted
Collect lang items after expansion
This allows macros to create lang items. gcc/rust/ChangeLog: * rust-session-manager.cc (Session::compile_crate): Collect lang items after expansion. Signed-off-by: Owen Avery <[email protected]>
1 parent 386a185 commit 5de1415

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gcc/rust/rust-session-manager.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,13 +612,13 @@ Session::compile_crate (const char *filename)
612612
if (last_step == CompileOptions::CompileStep::Expansion)
613613
return;
614614

615-
AST::CollectLangItems ().go (parsed_crate);
616-
617615
auto name_resolution_ctx = Resolver2_0::NameResolutionContext ();
618616
// expansion pipeline stage
619617

620618
expansion (parsed_crate, name_resolution_ctx);
621619

620+
AST::CollectLangItems ().go (parsed_crate);
621+
622622
rust_debug ("\033[0;31mSUCCESSFULLY FINISHED EXPANSION \033[0m");
623623
if (options.dump_option_enabled (CompileOptions::EXPANSION_DUMP))
624624
{

0 commit comments

Comments
 (0)