diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-01-22 14:07:05 +0000 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2025-02-04 15:09:51 +0000 |
commit | 28a87acaff74a87953d80df542b3d6e2e26daf62 (patch) | |
tree | c9c6f4f4c7ca35389eb1f423fc4bb9bc48dce1a1 /gcc/rust/ast/rust-ast-builder.cc | |
parent | ca227ed872e9a7b8ab9a170a2a8bbe4dc8dfd31e (diff) | |
download | gcc-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.cc | 4 |
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), |