summaryrefslogtreecommitdiff
path: root/src/hir/dump.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-04-25 12:38:17 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-04-25 12:38:17 +0800
commit7a1a685ef5e0d831f6762f1bc9171de66d933e32 (patch)
tree2e0aec9cb4968e0d4aa1e62321daf59c5e34a646 /src/hir/dump.cpp
parent40e8a2d1e5e72afcaae0ca876d17019894c2fd95 (diff)
downloadmrust-7a1a685ef5e0d831f6762f1bc9171de66d933e32.tar.gz
HIR - Add more complete privacy handling (allowing for autoderef to skip private fields)
Diffstat (limited to 'src/hir/dump.cpp')
-rw-r--r--src/hir/dump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hir/dump.cpp b/src/hir/dump.cpp
index a60ec643..3b981e26 100644
--- a/src/hir/dump.cpp
+++ b/src/hir/dump.cpp
@@ -152,7 +152,7 @@ namespace {
m_os << "(";
for(const auto& fld : flds)
{
- m_os << (fld.is_public ? "pub " : "") << fld.ent << ", ";
+ m_os << fld.publicity << " " << fld.ent << ", ";
}
if( item.m_params.m_bounds.empty() )
{
@@ -175,7 +175,7 @@ namespace {
inc_indent();
for(const auto& fld : flds)
{
- m_os << indent() << (fld.second.is_public ? "pub " : "") << fld.first << ": " << fld.second.ent << ",\n";
+ m_os << indent() << fld.second.publicity << " " << fld.first << ": " << fld.second.ent << ",\n";
}
dec_indent();
m_os << indent() << "}\n";