summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-30 22:16:57 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-30 22:16:57 +0800
commit9594b910f56430e7e34fc5cedeec8ca5c1b5207b (patch)
tree60c63daa8eeaf57fab407a5a2b8bc71d62da9151 /src
parenteefa619b01e161ce59ff39e8e0c8a17a8fa1701a (diff)
downloadmrust-9594b910f56430e7e34fc5cedeec8ca5c1b5207b.tar.gz
AST - Inheret module path info in anon mods
Diffstat (limited to 'src')
-rw-r--r--src/ast/ast.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp
index a5085501..420ac250 100644
--- a/src/ast/ast.cpp
+++ b/src/ast/ast.cpp
@@ -271,6 +271,7 @@ ExternBlock ExternBlock::clone() const
::std::shared_ptr<AST::Module> Module::add_anon() {
auto rv = ::std::shared_ptr<AST::Module>( new Module(m_my_path + FMT("#" << m_anon_modules.size())) );
DEBUG("New anon " << rv->m_my_path);
+ rv->m_file_info = m_file_info;
m_anon_modules.push_back( rv );