diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-05-18 17:38:05 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-05-18 17:38:05 +0800 |
commit | dab5cf5462d8fce6d6fcaa1343df8f5f3b763b8a (patch) | |
tree | 89ea3e68050872e2f462dd783c55cddb26d2b5c2 /src/ast/dump.cpp | |
parent | 8183bf1f7ffa47cd966bdc7872ca36875d9d83a1 (diff) | |
download | mrust-dab5cf5462d8fce6d6fcaa1343df8f5f3b763b8a.tar.gz |
HIR - Fix privacy error for items in non-library crate root
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"; |