diff options
-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"; |