diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-11 15:48:17 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-11 15:48:17 +0800 |
commit | 08236689def47e7527c7dac84743a1b3308dcae0 (patch) | |
tree | 666f6d582d7bd9ec5bd58e3a296b3c40aa71e718 /src/dump_as_rust.cpp | |
parent | 9a27307479bc9685b19ab2dcaa3d734f3dc1ff29 (diff) | |
download | mrust-08236689def47e7527c7dac84743a1b3308dcae0.tar.gz |
AST Dump - Fix incorrect error
Diffstat (limited to 'src/dump_as_rust.cpp')
-rw-r--r-- | src/dump_as_rust.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dump_as_rust.cpp b/src/dump_as_rust.cpp index 8c79c744..5200d4cc 100644 --- a/src/dump_as_rust.cpp +++ b/src/dump_as_rust.cpp @@ -688,7 +688,10 @@ void RustPrinter::handle_module(const AST::Module& mod) { TU_MATCH_DEF(AST::Item, (*it.data), (e), ( - throw ::std::runtime_error("Unexpected item type in impl block"); + throw ::std::runtime_error(FMT("Unexpected item type in impl block - " << it.data->tag_str())); + ), + (None, + // Ignore, it's been deleted by #[cfg] ), (Type, m_os << indent() << "type " << it.name << " = " << e.type() << ";\n"; |