summaryrefslogtreecommitdiff
path: root/src/parse/root.cpp
diff options
context:
space:
mode:
authorJohn Hodge (sonata) <tpg@mutabah.net>2014-12-30 17:36:47 +0800
committerJohn Hodge (sonata) <tpg@mutabah.net>2014-12-30 17:36:47 +0800
commit90d17906a39d521e36ff9e4f6089a1fb67a0aab7 (patch)
tree3f1a75e92d94ad025ad613e868d055cb0e6fad2e /src/parse/root.cpp
parent53321dbc3f9712b8823703202c8ea3af0630a1d9 (diff)
downloadmrust-90d17906a39d521e36ff9e4f6089a1fb67a0aab7.tar.gz
Rework expressions so they can be iterated (and actually save data)
Diffstat (limited to 'src/parse/root.cpp')
-rw-r--r--src/parse/root.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/root.cpp b/src/parse/root.cpp
index c9fc0401..4f2a5084 100644
--- a/src/parse/root.cpp
+++ b/src/parse/root.cpp
@@ -156,7 +156,7 @@ TypeRef Parse_Type(TokenStream& lex)
GET_CHECK_TOK(tok, lex, TOK_DOUBLE_DOT);
AST::Expr array_size = Parse_Expr(lex, true);
GET_CHECK_TOK(tok, lex, TOK_SQUARE_CLOSE);
- return TypeRef(TypeRef::TagSizedArray(), inner, array_size);
+ return TypeRef(TypeRef::TagSizedArray(), inner, ::std::move(array_size));
}
else {
GET_CHECK_TOK(tok, lex, TOK_SQUARE_CLOSE);