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.h | |
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.h')
-rw-r--r-- | gcc/rust/ast/rust-ast-builder.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/rust/ast/rust-ast-builder.h b/gcc/rust/ast/rust-ast-builder.h index 262bdcf..6e4dfb8 100644 --- a/gcc/rust/ast/rust-ast-builder.h +++ b/gcc/rust/ast/rust-ast-builder.h @@ -95,9 +95,9 @@ public: /* Create a let binding with an optional type and initializer (`let <name> : * <type> = <init>`) */ - std::unique_ptr<Stmt> let (std::unique_ptr<Pattern> pattern, - std::unique_ptr<Type> type = nullptr, - std::unique_ptr<Expr> init = nullptr) const; + std::unique_ptr<Stmt> let (std::unique_ptr<Pattern> &&pattern, + std::unique_ptr<Type> &&type = nullptr, + std::unique_ptr<Expr> &&init = nullptr) const; /** * Create a call expression to a function, struct or enum variant, given its |