diff options
author | John Hodge <tpg@mutabah.net> | 2016-12-15 18:49:06 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-12-15 18:49:06 +0800 |
commit | e91aec61b780eb166fd1813a3fe7484574f3155e (patch) | |
tree | 3b62dec3491a055c72efe8229cdd85d2aa939f88 /src/mir/cleanup.cpp | |
parent | 2a45f78605089afebfaf628aac50fc5fd51dfb25 (diff) | |
download | mrust-e91aec61b780eb166fd1813a3fe7484574f3155e.tar.gz |
HIR - Linkage anntation (un-populated)
Diffstat (limited to 'src/mir/cleanup.cpp')
-rw-r--r-- | src/mir/cleanup.cpp | 2 |
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, |