summaryrefslogtreecommitdiff
path: root/src/convert/resolve.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-03-24 20:22:16 +0800
committerJohn Hodge <tpg@mutabah.net>2015-03-24 20:22:16 +0800
commit5db811ee419fd4288d043b2d4148f17424e15302 (patch)
treeb732602bd6938cecbff23d4ab4f751160dea849e /src/convert/resolve.cpp
parentc2ddc804aef34ed7593d0123a3f2403a769e2ed0 (diff)
downloadmrust-5db811ee419fd4288d043b2d4148f17424e15302.tar.gz
Slow bugfixes
Diffstat (limited to 'src/convert/resolve.cpp')
-rw-r--r--src/convert/resolve.cpp4
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--; )
{