diff options
Diffstat (limited to 'src/expand/mod.cpp')
-rw-r--r-- | src/expand/mod.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/expand/mod.cpp b/src/expand/mod.cpp index 57b44479..959cef86 100644 --- a/src/expand/mod.cpp +++ b/src/expand/mod.cpp @@ -1058,6 +1058,10 @@ void Expand_Mod(::AST::Crate& crate, LList<const AST::Module*> modstack, ::AST:: ), (Crate, // Can't recurse into an `extern crate` + if(crate.m_extern_crates.count(e.name) == 0) + { + e.name = crate.load_extern_crate( i.data.span, e.name ); + } ), (Struct, |