summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-26 23:04:53 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-26 23:04:53 +0800
commit46b2f9450a438a597492e0015b735e625ee0cd3a (patch)
treeed9de85163e36c3dd5f6c0fbc38945ca941787a0 /src/hir/from_ast.cpp
parent81d89041e8500d9f6dfab9c55aee76967a5233f1 (diff)
downloadmrust-46b2f9450a438a597492e0015b735e625ee0cd3a.tar.gz
HIR Const Eval - libcore types done, onwards to `const` items
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r--src/hir/from_ast.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index 41ee37fd..011fb6c4 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -466,7 +466,8 @@
if( e.size ) {
return ::HIR::TypeRef( ::HIR::TypeRef::Data::make_Array({
box$( LowerHIR_Type(*e.inner) ),
- LowerHIR_Expr( e.size )
+ LowerHIR_Expr( e.size ),
+ ~0u
}) );
}
else {