diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-12 23:40:36 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-12 23:40:36 +0800 |
commit | 53ebabd01b6cc8aca39c48cb616c17fa23a0782d (patch) | |
tree | 5e2c03f349344c32ac314b6a73cf1c52247f6d70 /src/mir/from_hir.cpp | |
parent | b337562448d2dccd2a634b8dba50aeab76376f4b (diff) | |
download | mrust-53ebabd01b6cc8aca39c48cb616c17fa23a0782d.tar.gz |
HIR Patterns - Support binding Value::Named to targets
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r-- | src/mir/from_hir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp index 02baf445..6f166f65 100644 --- a/src/mir/from_hir.cpp +++ b/src/mir/from_hir.cpp @@ -86,6 +86,8 @@ namespace { destructure_from_ex(sp, e.sub_patterns[i], ::MIR::LValue::make_Field({ box$( lval.clone() ), i}), allow_refutable); } ), + (StructValue, + ), (StructTuple, for(unsigned int i = 0; i < e.sub_patterns.size(); i ++ ) { |