summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-03-18 19:01:27 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-03-18 19:01:27 +0800
commit3332a8379b7f20173ba5d63fe5ee40e47d57902a (patch)
treef3805985dbc8fc4b3825af944fba8de8a402d82a /src
parent91bf537331813d7cddd9dd474d7d3bb2984c9d4a (diff)
downloadmrust-3332a8379b7f20173ba5d63fe5ee40e47d57902a.tar.gz
HIR Typecheck - Fix incorrect error message
Diffstat (limited to 'src')
-rw-r--r--src/hir_typeck/expr_cs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hir_typeck/expr_cs.cpp b/src/hir_typeck/expr_cs.cpp
index 3d4826ff..4a8f381a 100644
--- a/src/hir_typeck/expr_cs.cpp
+++ b/src/hir_typeck/expr_cs.cpp
@@ -2991,11 +2991,11 @@ namespace {
void visit(::HIR::ExprNode_Literal& node) override {
TU_MATCH(::HIR::ExprNode_Literal::Data, (node.m_data), (e),
(Integer,
- ASSERT_BUG(node.span(), node.m_res_type.m_data.is_Primitive(), "Float Literal didn't return primitive");
+ ASSERT_BUG(node.span(), node.m_res_type.m_data.is_Primitive(), "Integer _Literal didn't return primitive - " << node.m_res_type);
e.m_type = node.m_res_type.m_data.as_Primitive();
),
(Float,
- ASSERT_BUG(node.span(), node.m_res_type.m_data.is_Primitive(), "Float Literal didn't return primitive");
+ ASSERT_BUG(node.span(), node.m_res_type.m_data.is_Primitive(), "Float Literal didn't return primitive - " << node.m_res_type);
e.m_type = node.m_res_type.m_data.as_Primitive();
),
(Boolean,