diff options
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r-- | src/hir/from_ast.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp index a3957d2b..ebca4418 100644 --- a/src/hir/from_ast.cpp +++ b/src/hir/from_ast.cpp @@ -868,6 +868,10 @@ namespace { mv$(variants) }; } +::HIR::Union LowerHIR_Union(::HIR::ItemPath path, const ::AST::Union& f) +{ + TODO(Span(), "LowerHIR_Union"); +} ::HIR::Trait LowerHIR_Trait(::HIR::SimplePath trait_path, const ::AST::Trait& f) { TRACE_FUNCTION_F(trait_path); @@ -1114,6 +1118,9 @@ void _add_mod_val_item(::HIR::Module& mod, ::std::string name, bool is_pub, ::H (Enum, _add_mod_ns_item( mod, item.name, item.is_pub, LowerHIR_Enum(item_path, e) ); ), + (Union, + _add_mod_ns_item( mod, item.name, item.is_pub, LowerHIR_Union(item_path, e) ); + ), (Trait, _add_mod_ns_item( mod, item.name, item.is_pub, LowerHIR_Trait(item_path.get_simple_path(), e) ); ), |