summaryrefslogtreecommitdiff
path: root/src/mir/cleanup.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-15 18:49:06 +0800
committerJohn Hodge <tpg@mutabah.net>2016-12-15 18:49:06 +0800
commite91aec61b780eb166fd1813a3fe7484574f3155e (patch)
tree3b62dec3491a055c72efe8229cdd85d2aa939f88 /src/mir/cleanup.cpp
parent2a45f78605089afebfaf628aac50fc5fd51dfb25 (diff)
downloadmrust-e91aec61b780eb166fd1813a3fe7484574f3155e.tar.gz
HIR - Linkage anntation (un-populated)
Diffstat (limited to 'src/mir/cleanup.cpp')
-rw-r--r--src/mir/cleanup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir/cleanup.cpp b/src/mir/cleanup.cpp
index f8f151ce..ddaaa8da 100644
--- a/src/mir/cleanup.cpp
+++ b/src/mir/cleanup.cpp
@@ -239,7 +239,7 @@ const ::HIR::Literal* MIR_Cleanup_GetConstant(const Span& sp, const StaticTraitR
{
::HIR::TypeRef tmp;
const auto& ty = state.get_static_type(tmp, path);
- MIR_ASSERT(state, ty.m_data.is_Array(), "BorrowOf returning slice not of an array");
+ MIR_ASSERT(state, ty.m_data.is_Array(), "BorrowOf returning slice not of an array, instead " << ty);
unsigned int size = ty.m_data.as_Array().size_val;
auto ptr_type = ::HIR::TypeRef::new_borrow(::HIR::BorrowType::Shared,