File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -306,8 +306,8 @@ Builder::return_expr (std::unique_ptr<Expr> &&to_return)
306
306
}
307
307
308
308
std::unique_ptr<Stmt>
309
- Builder::let (std::unique_ptr<Pattern> pattern, std::unique_ptr<Type> type,
310
- std::unique_ptr<Expr> init) const
309
+ Builder::let (std::unique_ptr<Pattern> && pattern, std::unique_ptr<Type> && type,
310
+ std::unique_ptr<Expr> && init) const
311
311
{
312
312
return std::unique_ptr<Stmt> (new LetStmt (std::move (pattern),
313
313
std::move (init), std::move (type),
Original file line number Diff line number Diff line change @@ -95,9 +95,9 @@ class Builder
95
95
96
96
/* Create a let binding with an optional type and initializer (`let <name> :
97
97
* <type> = <init>`) */
98
- std::unique_ptr<Stmt> let (std::unique_ptr<Pattern> pattern,
99
- std::unique_ptr<Type> type = nullptr ,
100
- std::unique_ptr<Expr> init = nullptr ) const ;
98
+ std::unique_ptr<Stmt> let (std::unique_ptr<Pattern> && pattern,
99
+ std::unique_ptr<Type> && type = nullptr ,
100
+ std::unique_ptr<Expr> && init = nullptr ) const ;
101
101
102
102
/* *
103
103
* Create a call expression to a function, struct or enum variant, given its
You can’t perform that action at this time.
0 commit comments