We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61e2719 commit ce86e83Copy full SHA for ce86e83
compiler/rustc_ast_lowering/src/expr.rs
@@ -222,7 +222,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
222
None => {
223
let peeled = body.peel_uwu();
224
if let ast::ExprKind::Gen(
225
- gen_capture_clause,
+ _,
226
block,
227
gen_kind @ ast::GenBlockKind::Async,
228
span,
@@ -248,7 +248,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
248
let id = self.next_node_id();
249
self.lower_expr_coroutine_closure(
250
binder,
251
- (*capture_clause).max(*gen_capture_clause),
+ *capture_clause,
252
e.id,
253
hir_id,
254
coroutine_kind,
0 commit comments