diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-01-01 18:16:10 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-01-01 18:16:10 +0800 |
commit | b7c4d85d6642a68fc8fcfd1e0466f3b9dae41b30 (patch) | |
tree | ed09d72d58229bfd2a9a6c544b5403bb47294a61 /src/mir/from_hir.cpp | |
parent | 11a9f976f334534bdaf6e6f7dc4f74f08446c7ee (diff) | |
download | mrust-b7c4d85d6642a68fc8fcfd1e0466f3b9dae41b30.tar.gz |
Match ergonomics - Fixes and expansion
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r-- | src/mir/from_hir.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp index 2c45f5bb..bea8a38c 100644 --- a/src/mir/from_hir.cpp +++ b/src/mir/from_hir.cpp @@ -207,6 +207,11 @@ namespace { allow_refutable = 2; } + for(size_t i = 0; i < pat.m_implicit_deref_count; i ++) + { + lval = ::MIR::LValue::make_Deref({ box$( mv$(lval) ) }); + } + TU_MATCH_HDRA( (pat.m_data), {) TU_ARMA(Any, e) { } |