aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast-builder.cc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2025-01-22 14:07:05 +0000
committerCohenArthur <arthur.cohen@embecosm.com>2025-02-04 15:09:51 +0000
commit28a87acaff74a87953d80df542b3d6e2e26daf62 (patch)
treec9c6f4f4c7ca35389eb1f423fc4bb9bc48dce1a1 /gcc/rust/ast/rust-ast-builder.cc
parentca227ed872e9a7b8ab9a170a2a8bbe4dc8dfd31e (diff)
downloadgcc-28a87acaff74a87953d80df542b3d6e2e26daf62.zip
gcc-28a87acaff74a87953d80df542b3d6e2e26daf62.tar.gz
gcc-28a87acaff74a87953d80df542b3d6e2e26daf62.tar.bz2
ast: builder: Fix arguments of Builder::let
gcc/rust/ChangeLog: * ast/rust-ast-builder.h: Mark all arguments as &&. * ast/rust-ast-builder.cc (Builder::let): Likewise.
Diffstat (limited to 'gcc/rust/ast/rust-ast-builder.cc')
-rw-r--r--gcc/rust/ast/rust-ast-builder.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-ast-builder.cc b/gcc/rust/ast/rust-ast-builder.cc
index 9685ae5..e06b81c 100644
--- a/gcc/rust/ast/rust-ast-builder.cc
+++ b/gcc/rust/ast/rust-ast-builder.cc
@@ -306,8 +306,8 @@ Builder::return_expr (std::unique_ptr<Expr> &&to_return)
}
std::unique_ptr<Stmt>
-Builder::let (std::unique_ptr<Pattern> pattern, std::unique_ptr<Type> type,
- std::unique_ptr<Expr> init) const
+Builder::let (std::unique_ptr<Pattern> &&pattern, std::unique_ptr<Type> &&type,
+ std::unique_ptr<Expr> &&init) const
{
return std::unique_ptr<Stmt> (new LetStmt (std::move (pattern),
std::move (init), std::move (type),