diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-04-25 12:38:17 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-04-25 12:38:17 +0800 |
commit | 7a1a685ef5e0d831f6762f1bc9171de66d933e32 (patch) | |
tree | 2e0aec9cb4968e0d4aa1e62321daf59c5e34a646 /src/resolve/index.cpp | |
parent | 40e8a2d1e5e72afcaae0ca876d17019894c2fd95 (diff) | |
download | mrust-7a1a685ef5e0d831f6762f1bc9171de66d933e32.tar.gz |
HIR - Add more complete privacy handling (allowing for autoderef to skip private fields)
Diffstat (limited to 'src/resolve/index.cpp')
-rw-r--r-- | src/resolve/index.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/index.cpp b/src/resolve/index.cpp index f010b420..f38219ef 100644 --- a/src/resolve/index.cpp +++ b/src/resolve/index.cpp @@ -286,7 +286,7 @@ void Resolve_Index_Module_Wildcard__glob_in_hir_mod(const Span& sp, const AST::C { for(const auto& it : hmod.m_mod_items) { const auto& ve = *it.second; - if( ve.is_public ) { + if( ve.publicity.is_global() ) { const auto* vep = &ve.ent; AST::Path p; if( vep->is_Import() ) { @@ -346,7 +346,7 @@ void Resolve_Index_Module_Wildcard__glob_in_hir_mod(const Span& sp, const AST::C } for(const auto& it : hmod.m_value_items) { const auto& ve = *it.second; - if( ve.is_public ) { + if( ve.publicity.is_global() ) { AST::Path p; const auto* vep = &ve.ent; if( ve.ent.is_Import() ) { |