aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/parse/rust-parse-impl.h
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-02-17 15:36:21 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2022-02-18 09:08:07 +0100
commitd120c9db1811752e543ef8c231c1501a63dfcea2 (patch)
tree253d5a373302ce9932aa74ad213d937a65a44395 /gcc/rust/parse/rust-parse-impl.h
parentc6daece64782fd5f03f573b4633d1826794a9f8a (diff)
downloadgcc-d120c9db1811752e543ef8c231c1501a63dfcea2.zip
gcc-d120c9db1811752e543ef8c231c1501a63dfcea2.tar.gz
gcc-d120c9db1811752e543ef8c231c1501a63dfcea2.tar.bz2
array-copy-init: Add location info
Diffstat (limited to 'gcc/rust/parse/rust-parse-impl.h')
-rw-r--r--gcc/rust/parse/rust-parse-impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h
index c4a5080..8703ecb 100644
--- a/gcc/rust/parse/rust-parse-impl.h
+++ b/gcc/rust/parse/rust-parse-impl.h
@@ -8782,7 +8782,7 @@ Parser<ManagedTokenSource>::parse_array_expr (AST::AttrVec outer_attrs,
std::unique_ptr<AST::ArrayElemsCopied> copied_array_elems (
new AST::ArrayElemsCopied (std::move (initial_expr),
- std::move (copy_amount)));
+ std::move (copy_amount), locus));
return std::unique_ptr<AST::ArrayExpr> (
new AST::ArrayExpr (std::move (copied_array_elems),
std::move (inner_attrs),