summaryrefslogtreecommitdiff
path: root/src/hir_expand
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-29 13:26:52 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-29 13:26:52 +0800
commitf5420b8174f7acf062f4c5d682820019d79cbdaf (patch)
treed6c6cdb63a0be8b754d618395d0ffa7443eb2352 /src/hir_expand
parentd8fed3a1def1ae667c1471f44b19749a1f88cc42 (diff)
downloadmrust-f5420b8174f7acf062f4c5d682820019d79cbdaf.tar.gz
HIR Types - Store array size expr as a shared_ptr to allow cloning
Diffstat (limited to 'src/hir_expand')
-rw-r--r--src/hir_expand/reborrow.cpp2
-rw-r--r--src/hir_expand/ufcs_everything.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/hir_expand/reborrow.cpp b/src/hir_expand/reborrow.cpp
index a23d0cd6..3bc89be9 100644
--- a/src/hir_expand/reborrow.cpp
+++ b/src/hir_expand/reborrow.cpp
@@ -129,7 +129,7 @@ namespace {
DEBUG("Array size " << ty);
if( e.size ) {
ExprVisitor_Mutate ev(m_crate);
- ev.visit_node_ptr( e.size );
+ ev.visit_node_ptr( *e.size );
}
)
else {
diff --git a/src/hir_expand/ufcs_everything.cpp b/src/hir_expand/ufcs_everything.cpp
index 9f246f74..daba3e6a 100644
--- a/src/hir_expand/ufcs_everything.cpp
+++ b/src/hir_expand/ufcs_everything.cpp
@@ -757,7 +757,7 @@ namespace {
DEBUG("Array size " << ty);
if( e.size ) {
ExprVisitor_Mutate ev(m_crate);
- ev.visit_node_ptr( e.size );
+ ev.visit_node_ptr( *e.size );
}
)
else {