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.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;