diff options
Diffstat (limited to 'gcc/rust/expand/rust-derive-clone.cc')
-rw-r--r-- | gcc/rust/expand/rust-derive-clone.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/rust/expand/rust-derive-clone.cc b/gcc/rust/expand/rust-derive-clone.cc index 00abb59..d8f79d0 100644 --- a/gcc/rust/expand/rust-derive-clone.cc +++ b/gcc/rust/expand/rust-derive-clone.cc @@ -61,8 +61,7 @@ std::unique_ptr<AssociatedItem> DeriveClone::clone_fn (std::unique_ptr<Expr> &&clone_expr) { auto block = std::unique_ptr<BlockExpr> ( - new BlockExpr ({}, std::move (clone_expr), {}, {}, AST::LoopLabel::error (), - loc, loc)); + new BlockExpr ({}, std::move (clone_expr), {}, {}, tl::nullopt, loc, loc)); auto big_self_type = builder.single_type_path ("Self"); std::unique_ptr<SelfParam> self (new SelfParam (Lifetime::error (), |