diff options
author | John Hodge <tpg@mutabah.net> | 2015-03-24 20:22:16 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-03-24 20:22:16 +0800 |
commit | 5db811ee419fd4288d043b2d4148f17424e15302 (patch) | |
tree | b732602bd6938cecbff23d4ab4f751160dea849e /src/convert/resolve.cpp | |
parent | c2ddc804aef34ed7593d0123a3f2403a769e2ed0 (diff) | |
download | mrust-5db811ee419fd4288d043b2d4148f17424e15302.tar.gz |
Slow bugfixes
Diffstat (limited to 'src/convert/resolve.cpp')
-rw-r--r-- | src/convert/resolve.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/convert/resolve.cpp b/src/convert/resolve.cpp index 58c15468..3a1f0fb7 100644 --- a/src/convert/resolve.cpp +++ b/src/convert/resolve.cpp @@ -118,7 +118,7 @@ public: // Do use resolution on this module, then do
AST::Path local_path = m_res.m_module_path;
for(unsigned int i = 0; i < m_res.m_module_stack.size(); i ++)
- local_path.nodes().push_back( AST::PathNode( FMT("#"<<i), {} ) );
+ local_path.nodes().push_back( AST::PathNode( FMT("#" << m_res.m_module_stack[i].first), {} ) );
ResolvePaths_HandleModule_Use(m_res.m_crate, local_path, *node.m_inner_mod);
}
@@ -355,7 +355,7 @@ void CPathResolver::handle_path(AST::Path& path, CASTIterator::PathMode mode) {
AST::Path local_path = m_module_path;
for(unsigned int i = 0; i < m_module_stack.size(); i ++)
- local_path.nodes().push_back( AST::PathNode( FMT("#"<<i), {} ) );
+ local_path.nodes().push_back( AST::PathNode( FMT("#" << m_module_stack[i].first), {} ) );
for(unsigned int i = m_module_stack.size(); i--; )
{
|