@@ -29,7 +29,7 @@ pub(crate) fn rewrite_closure(
2929 binder : & ast:: ClosureBinder ,
3030 constness : ast:: Const ,
3131 capture : ast:: CaptureBy ,
32- coro_kind : & Option < ast:: CoroutineKind > ,
32+ coroutine_kind : & Option < ast:: CoroutineKind > ,
3333 movability : ast:: Movability ,
3434 fn_decl : & ast:: FnDecl ,
3535 body : & ast:: Expr ,
@@ -40,7 +40,16 @@ pub(crate) fn rewrite_closure(
4040 debug ! ( "rewrite_closure {:?}" , body) ;
4141
4242 let ( prefix, extra_offset) = rewrite_closure_fn_decl (
43- binder, constness, capture, coro_kind, movability, fn_decl, body, span, context, shape,
43+ binder,
44+ constness,
45+ capture,
46+ coroutine_kind,
47+ movability,
48+ fn_decl,
49+ body,
50+ span,
51+ context,
52+ shape,
4453 ) ?;
4554 // 1 = space between `|...|` and body.
4655 let body_shape = shape. offset_left ( extra_offset) ?;
@@ -233,7 +242,7 @@ fn rewrite_closure_fn_decl(
233242 binder : & ast:: ClosureBinder ,
234243 constness : ast:: Const ,
235244 capture : ast:: CaptureBy ,
236- coro_kind : & Option < ast:: CoroutineKind > ,
245+ coroutine_kind : & Option < ast:: CoroutineKind > ,
237246 movability : ast:: Movability ,
238247 fn_decl : & ast:: FnDecl ,
239248 body : & ast:: Expr ,
@@ -263,7 +272,7 @@ fn rewrite_closure_fn_decl(
263272 } else {
264273 ""
265274 } ;
266- let coro = match coro_kind {
275+ let coro = match coroutine_kind {
267276 Some ( ast:: CoroutineKind :: Async { .. } ) => "async " ,
268277 Some ( ast:: CoroutineKind :: Gen { .. } ) => "gen " ,
269278 None => "" ,
@@ -343,7 +352,7 @@ pub(crate) fn rewrite_last_closure(
343352 ref binder,
344353 constness,
345354 capture_clause,
346- ref coro_kind ,
355+ ref coroutine_kind ,
347356 movability,
348357 ref fn_decl,
349358 ref body,
@@ -364,7 +373,7 @@ pub(crate) fn rewrite_last_closure(
364373 binder,
365374 constness,
366375 capture_clause,
367- coro_kind ,
376+ coroutine_kind ,
368377 movability,
369378 fn_decl,
370379 body,
0 commit comments