summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/expand/mod.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expand/mod.cpp b/src/expand/mod.cpp
index b57c852c..97934db2 100644
--- a/src/expand/mod.cpp
+++ b/src/expand/mod.cpp
@@ -857,6 +857,7 @@ void Expand(::AST::Crate& crate)
crate.m_extern_crates.at("std").with_all_macros([&](const auto& name, const auto& mac) {
crate.m_root_module.add_macro_import( name, mac );
});
+ crate.m_root_module.add_ext_crate(false, "std", "std", ::AST::MetaItems {});
break;
case ::AST::Crate::LOAD_CORE:
if( crate.m_prelude_path != AST::Path() )
@@ -865,6 +866,7 @@ void Expand(::AST::Crate& crate)
crate.m_extern_crates.at("core").with_all_macros([&](const auto& name, const auto& mac) {
crate.m_root_module.add_macro_import( name, mac );
});
+ crate.m_root_module.add_ext_crate(false, "core", "core", ::AST::MetaItems {});
break;
case ::AST::Crate::LOAD_NONE:
break;