summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-18 09:11:44 +0800
committerJohn Hodge <tpg@mutabah.net>2016-12-18 09:11:44 +0800
commit4c0ae218d9bab395fe50edcf10d720a40127572f (patch)
treed22645c2bb11e5ac8e12c4f15103b0926083d1c6 /src
parent03a4e2ae2ac6ecef3803ed88aba9b52ae1f2a775 (diff)
downloadmrust-4c0ae218d9bab395fe50edcf10d720a40127572f.tar.gz
HIR Reborrow - Handle reborrow inside _Unize
Diffstat (limited to 'src')
-rw-r--r--src/hir_expand/reborrow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hir_expand/reborrow.cpp b/src/hir_expand/reborrow.cpp
index 9eac941c..7e305937 100644
--- a/src/hir_expand/reborrow.cpp
+++ b/src/hir_expand/reborrow.cpp
@@ -131,6 +131,10 @@ namespace {
arg.second = do_reborrow(mv$(arg.second));
}
}
+ void visit(::HIR::ExprNode_Unsize& node) override {
+ ::HIR::ExprVisitorDef::visit(node);
+ node.m_value = do_reborrow(mv$(node.m_value));
+ }
};
class OuterVisitor:
public ::HIR::Visitor