summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2018-08-12 21:03:19 +0800
committerJohn Hodge <tpg@ucc.asn.au>2018-08-12 21:03:19 +0800
commit6de0e63ac3fdf9f86b68f58dc5a20dec9880c55a (patch)
treebe01a21e86a111a6f652db323a3d088dde3eb9e1
parent72c163fbcddbfa1456c430bf31a514c7f99ea1e1 (diff)
downloadmrust-6de0e63ac3fdf9f86b68f58dc5a20dec9880c55a.tar.gz
MIR From HIR - Fix incorrect types in `<-` lowering
-rw-r--r--src/mir/from_hir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp
index dc3b78a7..66347879 100644
--- a/src/mir/from_hir.cpp
+++ b/src/mir/from_hir.cpp
@@ -1605,7 +1605,7 @@ namespace {
// Extract the "Place" type
m_builder.end_block(::MIR::Terminator::make_Call({
place__ok, place__panic,
- place.clone(), ::HIR::Path(place_type.clone(), ::HIR::GenericPath(path_Placer, trait_params_data.clone()), "make_place", {}),
+ place.clone(), ::HIR::Path(node.m_place->m_res_type.clone(), ::HIR::GenericPath(path_Placer, trait_params_data.clone()), "make_place", {}),
::make_vec1( mv$(val) )
}));
break; }