From dab5cf5462d8fce6d6fcaa1343df8f5f3b763b8a Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 18 May 2019 17:38:05 +0800 Subject: HIR - Fix privacy error for items in non-library crate root --- src/ast/dump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ast/dump.cpp') 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"; -- cgit v1.2.3