diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-28 12:49:24 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-28 12:49:24 +0800 |
commit | 21dbf4949edd87c81f7eb8396fb4f91ef76a10a8 (patch) | |
tree | 9d0e314456d302205305cdba8b592b0b52a84105 /src/dump_as_rust.cpp | |
parent | 03bc080d35b6ee09345f012137dd52d6fa6c5b53 (diff) | |
download | mrust-21dbf4949edd87c81f7eb8396fb4f91ef76a10a8.tar.gz |
Expand - Support #[cfg] on use statements
Diffstat (limited to 'src/dump_as_rust.cpp')
-rw-r--r-- | src/dump_as_rust.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dump_as_rust.cpp b/src/dump_as_rust.cpp index 3c3a215d..8c79c744 100644 --- a/src/dump_as_rust.cpp +++ b/src/dump_as_rust.cpp @@ -561,6 +561,9 @@ void RustPrinter::handle_module(const AST::Module& mod) // m_os << "\n"; // need_nl = false; //} + if( i.data.path == AST::Path() ) { + continue ; + } m_os << indent() << (i.is_pub ? "pub " : "") << "use " << i.data; if( i.name == "" ) { |