diff options
Diffstat (limited to 'src/ast/dump.cpp')
-rw-r--r-- | src/ast/dump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/dump.cpp b/src/ast/dump.cpp index f0bdfa11..00848fb5 100644 --- a/src/ast/dump.cpp +++ b/src/ast/dump.cpp @@ -1042,7 +1042,7 @@ void RustPrinter::handle_struct(const AST::Struct& s) (Tuple, m_os << "("; for( const auto& i : e.ents ) - m_os << i.m_type << ", "; + m_os << (i.m_is_public ? "pub " : "") << i.m_type << ", "; m_os << ")\n"; print_bounds(s.params()); m_os << indent() << ";\n"; |