summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-29 09:40:00 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-29 09:40:00 +0800
commit4191dc24ec72f7959720866281d0657495da0b8b (patch)
tree9962b5bbd152219b3c2fb91a2acf07eb267161be /src
parentbb2b8ce80e56acceea8005fbc00e2e042382a2a0 (diff)
downloadmrust-4191dc24ec72f7959720866281d0657495da0b8b.tar.gz
HIR Typecheck Expr - Report have/exp argument counts
Diffstat (limited to 'src')
-rw-r--r--src/hir_typeck/expr_cs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hir_typeck/expr_cs.cpp b/src/hir_typeck/expr_cs.cpp
index 7e1966b3..6876add7 100644
--- a/src/hir_typeck/expr_cs.cpp
+++ b/src/hir_typeck/expr_cs.cpp
@@ -1101,7 +1101,8 @@ namespace {
assert( node.m_cache.m_arg_types.size() >= 1);
if( node.m_args.size() != node.m_cache.m_arg_types.size() - 1 ) {
- ERROR(node.span(), E0000, "Incorrect number of arguments to " << node.m_path);
+ ERROR(node.span(), E0000, "Incorrect number of arguments to " << node.m_path
+ << " - exp " << node.m_cache.m_arg_types.size()-1 << " got " << node.m_args.size());
}
}