summaryrefslogtreecommitdiff
path: root/src/hir/hir_ops.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/hir_ops.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/hir_ops.cpp')
-rw-r--r--src/hir/hir_ops.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hir/hir_ops.cpp b/src/hir/hir_ops.cpp
index b09dbdf7..89e48c80 100644
--- a/src/hir/hir_ops.cpp
+++ b/src/hir/hir_ops.cpp
@@ -1036,6 +1036,7 @@ const ::MIR::Function* HIR::Crate::get_or_gen_mir(const ::HIR::ItemPath& ip, con
ms.m_impl_generics = ep.m_state->m_impl_generics;
ms.m_item_generics = ep.m_state->m_item_generics;
ms.m_traits = ep.m_state->m_traits;
+ ms.m_mod_paths.push_back(ep.m_state->m_mod_path);
Typecheck_Code(ms, const_cast<::HIR::Function::args_t&>(args), ret_ty, ep_mut);
//Debug_SetStagePre("Expand HIR Annotate");
HIR_Expand_AnnotateUsage_Expr(*this, ep_mut);