summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r--src/hir/from_ast.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index 827ac973..177bc65c 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -428,7 +428,8 @@
{
TU_MATCH(::TypeData, (ty.m_data), (e),
(None,
- TODO(ty.span(), "TypeData::None");
+ // Aka diverging
+ return ::HIR::TypeRef( ::HIR::TypeRef::Data::make_Diverge({}) );
),
(Any,
return ::HIR::TypeRef();
@@ -527,7 +528,10 @@
::HIR::TypeAlias LowerHIR_TypeAlias(const ::AST::TypeAlias& ta)
{
- throw ::std::runtime_error("TODO: LowerHIR_TypeAlias");
+ return ::HIR::TypeAlias {
+ LowerHIR_GenericParams(ta.params()),
+ LowerHIR_Type(ta.type())
+ };
}
::HIR::Struct LowerHIR_Struct(const ::AST::Struct& ent)