diff --git a/src/expr.rs b/src/expr.rs index 8266f95fd70..c7c4b680b07 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -372,7 +372,7 @@ pub(crate) fn format_expr( )) } } - ast::ExprKind::Gen(capture_by, ref block, ref kind) => { + ast::ExprKind::Gen(capture_by, ref block, ref kind, _) => { let mover = if matches!(capture_by, ast::CaptureBy::Value { .. }) { "move " } else {