summaryrefslogtreecommitdiff
path: root/src/mir/from_hir.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-07-16 13:27:31 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-07-16 13:27:31 +0800
commit97567dbbd8c3f8719dbb9e32c6d0f3a155246508 (patch)
tree3268a7f2bcadd013199883b7bbc2f26b9c385643 /src/mir/from_hir.cpp
parent9d1a660045de5a3cc37315c78a3a75999fef9b9a (diff)
downloadmrust-97567dbbd8c3f8719dbb9e32c6d0f3a155246508.tar.gz
All - Upgrade to rustc 1.19.0 beta (2017-07-08)
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r--src/mir/from_hir.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp
index 786c2243..5604d154 100644
--- a/src/mir/from_hir.cpp
+++ b/src/mir/from_hir.cpp
@@ -1505,11 +1505,11 @@ namespace {
if( node.m_type == ::HIR::ExprNode_Emplace::Type::Noop ) {
return node.m_value->visit(*this);
}
- //auto path_Placer = ::HIR::SimplePath("core", {"ops", "Placer"});
- auto path_BoxPlace = ::HIR::SimplePath("core", {"ops", "BoxPlace"});
- auto path_Place = ::HIR::SimplePath("core", {"ops", "Place"});
- auto path_Boxed = ::HIR::SimplePath("core", {"ops", "Boxed"});
- //auto path_InPlace = ::HIR::SimplePath("core", {"ops", "InPlace"});
+ //const auto& path_Placer = m_builder.crate().get_lang_item_path(node.span(), "placer_trait");
+ const auto& path_Boxed = m_builder.crate().get_lang_item_path(node.span(), "boxed_trait");
+ const auto& path_Place = m_builder.crate().get_lang_item_path(node.span(), "place_trait");
+ const auto& path_BoxPlace = m_builder.crate().get_lang_item_path(node.span(), "box_place_trait");
+ //const auto& path_InPlace = m_builder.crate().get_lang_item_path(node.span(), "in_place_trait");
const auto& data_ty = node.m_value->m_res_type;