From d5b39c4fcf80a1e84aee6080351dc990c0aa8963 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 31 Mar 2016 11:10:05 +0800 Subject: AST - Put spans on imports --- src/dump_as_rust.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dump_as_rust.cpp') 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; } -- cgit v1.2.3