summaryrefslogtreecommitdiff
path: root/src/mir/from_hir.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-19 22:46:14 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-19 22:46:14 +0800
commitcf499efccf021db06630b76224bcb68dcf923975 (patch)
treef64e891cb31ed6f886a83b110b94fed718cb9011 /src/mir/from_hir.cpp
parent5fe7fcc580db497b267ca0f820e5d3268fe8aafb (diff)
downloadmrust-cf499efccf021db06630b76224bcb68dcf923975.tar.gz
HIR - Union handling
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r--src/mir/from_hir.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp
index 9f8a91e3..d635fc82 100644
--- a/src/mir/from_hir.cpp
+++ b/src/mir/from_hir.cpp
@@ -1668,7 +1668,7 @@ namespace {
fields_ptr = &it->second.as_Struct();
),
(Union,
- TODO(node.span(), "_StructLiteral Union");
+ BUG(node.span(), "_StructLiteral Union");
),
(Struct,
fields_ptr = &e->m_data.as_Named();
@@ -1709,6 +1709,10 @@ namespace {
mv$(values)
}) );
}
+ void visit(::HIR::ExprNode_UnionLiteral& node) override
+ {
+ TODO(node.span(), "_UnionLiteral");
+ }
void visit(::HIR::ExprNode_Tuple& node) override
{