summaryrefslogtreecommitdiff
path: root/src/hir/expr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/expr.hpp')
-rw-r--r--src/hir/expr.hpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/hir/expr.hpp b/src/hir/expr.hpp
index 3069ae1d..33726093 100644
--- a/src/hir/expr.hpp
+++ b/src/hir/expr.hpp
@@ -620,16 +620,12 @@ struct ExprNode_Literal:
m_res_type = ::HIR::TypeRef::Data::make_Primitive( ::HIR::CoreType::Bool );
),
(String,
- m_res_type = ::HIR::TypeRef::Data::make_Borrow({
- ::HIR::BorrowType::Shared,
- box$( ::HIR::TypeRef( ::HIR::TypeRef::Data::make_Primitive(::HIR::CoreType::Str) ) )
- });
+ // TODO: &'static
+ m_res_type = ::HIR::TypeRef::new_borrow( ::HIR::BorrowType::Shared, ::HIR::TypeRef(::HIR::CoreType::Str) );
),
(ByteString,
- m_res_type = ::HIR::TypeRef::Data::make_Borrow({
- ::HIR::BorrowType::Shared,
- box$( ::HIR::TypeRef::new_array( ::HIR::CoreType::U8, e.size() ) )
- });
+ // TODO: &'static
+ m_res_type = ::HIR::TypeRef::new_borrow( ::HIR::BorrowType::Shared, ::HIR::TypeRef::new_array(::HIR::CoreType::U8, e.size()) );
)
)
}