summaryrefslogtreecommitdiff
path: root/src/hir_conv/constant_evaluation.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-06-11 00:06:50 +0800
committerJohn Hodge <tpg@mutabah.net>2016-06-11 00:06:50 +0800
commit436dad1104d40270d6b6a805b412d4603f27249c (patch)
treec77dc5dd11ca268e933945c8685030e110e43fa9 /src/hir_conv/constant_evaluation.cpp
parent44e187830d542acaf280f5139c8dc25e3c9fb72c (diff)
downloadmrust-436dad1104d40270d6b6a805b412d4603f27249c.tar.gz
HIR Typecheck - Constants
Diffstat (limited to 'src/hir_conv/constant_evaluation.cpp')
-rw-r--r--src/hir_conv/constant_evaluation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir_conv/constant_evaluation.cpp b/src/hir_conv/constant_evaluation.cpp
index c9fcaf0a..fe1c46ca 100644
--- a/src/hir_conv/constant_evaluation.cpp
+++ b/src/hir_conv/constant_evaluation.cpp
@@ -418,6 +418,9 @@ namespace {
)
)
}
+ void visit(::HIR::ExprNode_UnitVariant& node) override {
+ TODO(node.span(), "Unit varant/struct constructors in constant context");
+ }
void visit(::HIR::ExprNode_PathValue& node) override {
const auto& c = get_constant(node.span(), m_crate, node.m_path);
if( c.m_value_res.is_Invalid() ) {