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 <powerboat9.gamer@gmail.com>
if (last_step == CompileOptions::CompileStep::Expansion)
return;
- AST::CollectLangItems ().go (parsed_crate);
-
auto name_resolution_ctx = Resolver2_0::NameResolutionContext ();
// expansion pipeline stage
expansion (parsed_crate, name_resolution_ctx);
+ AST::CollectLangItems ().go (parsed_crate);
+
rust_debug ("\033[0;31mSUCCESSFULLY FINISHED EXPANSION \033[0m");
if (options.dump_option_enabled (CompileOptions::EXPANSION_DUMP))
{