Skip to content

Commit ce86e83

Browse files
Don't merge capture clauses
1 parent 61e2719 commit ce86e83

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+2
-2
lines changed

compiler/rustc_ast_lowering/src/expr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
222222
None => {
223223
let peeled = body.peel_uwu();
224224
if let ast::ExprKind::Gen(
225-
gen_capture_clause,
225+
_,
226226
block,
227227
gen_kind @ ast::GenBlockKind::Async,
228228
span,
@@ -248,7 +248,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
248248
let id = self.next_node_id();
249249
self.lower_expr_coroutine_closure(
250250
binder,
251-
(*capture_clause).max(*gen_capture_clause),
251+
*capture_clause,
252252
e.id,
253253
hir_id,
254254
coroutine_kind,

0 commit comments

Comments
 (0)