summaryrefslogtreecommitdiff
path: root/src/mir/from_hir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r--src/mir/from_hir.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp
index 27c7d4cf..80915304 100644
--- a/src/mir/from_hir.cpp
+++ b/src/mir/from_hir.cpp
@@ -57,7 +57,7 @@ namespace {
(Any,
),
(Box,
- TODO(sp, "Destructure using " << pat);
+ define_vars_from(sp, *e.sub);
),
(Ref,
define_vars_from(sp, *e.sub);
@@ -168,7 +168,7 @@ namespace {
(Any,
),
(Box,
- TODO(sp, "Destructure using Box - " << pat);
+ destructure_from_ex(sp, *e.sub, ::MIR::LValue::make_Deref({ box$( mv$(lval) ) }), allow_refutable);
),
(Ref,
destructure_from_ex(sp, *e.sub, ::MIR::LValue::make_Deref({ box$( mv$(lval) ) }), allow_refutable);