summaryrefslogtreecommitdiff
path: root/src/dump_as_rust.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-03-31 11:10:05 +0800
committerJohn Hodge <tpg@mutabah.net>2016-03-31 11:10:05 +0800
commitd5b39c4fcf80a1e84aee6080351dc990c0aa8963 (patch)
tree47212669e50e453f76baa580c6565327522655c1 /src/dump_as_rust.cpp
parent0397724cfdbff39773ecc825dc25917b860ee982 (diff)
downloadmrust-d5b39c4fcf80a1e84aee6080351dc990c0aa8963.tar.gz
AST - Put spans on imports
Diffstat (limited to 'src/dump_as_rust.cpp')
-rw-r--r--src/dump_as_rust.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dump_as_rust.cpp b/src/dump_as_rust.cpp
index 45ca55e0..f72b2df5 100644
--- a/src/dump_as_rust.cpp
+++ b/src/dump_as_rust.cpp
@@ -551,7 +551,7 @@ void RustPrinter::handle_module(const AST::Module& mod)
{
m_os << "::*";
}
- else if( i.data.nodes().back().name() != i.name )
+ else if( i.data.path.nodes().back().name() != i.name )
{
m_os << " as " << i.name;
}