@@ -29,7 +29,7 @@ pub(crate) fn rewrite_closure(
29
29
binder : & ast:: ClosureBinder ,
30
30
constness : ast:: Const ,
31
31
capture : ast:: CaptureBy ,
32
- coro_kind : & Option < ast:: CoroutineKind > ,
32
+ coroutine_kind : & Option < ast:: CoroutineKind > ,
33
33
movability : ast:: Movability ,
34
34
fn_decl : & ast:: FnDecl ,
35
35
body : & ast:: Expr ,
@@ -40,7 +40,16 @@ pub(crate) fn rewrite_closure(
40
40
debug ! ( "rewrite_closure {:?}" , body) ;
41
41
42
42
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,
44
53
) ?;
45
54
// 1 = space between `|...|` and body.
46
55
let body_shape = shape. offset_left ( extra_offset) ?;
@@ -233,7 +242,7 @@ fn rewrite_closure_fn_decl(
233
242
binder : & ast:: ClosureBinder ,
234
243
constness : ast:: Const ,
235
244
capture : ast:: CaptureBy ,
236
- coro_kind : & Option < ast:: CoroutineKind > ,
245
+ coroutine_kind : & Option < ast:: CoroutineKind > ,
237
246
movability : ast:: Movability ,
238
247
fn_decl : & ast:: FnDecl ,
239
248
body : & ast:: Expr ,
@@ -263,7 +272,7 @@ fn rewrite_closure_fn_decl(
263
272
} else {
264
273
""
265
274
} ;
266
- let coro = match coro_kind {
275
+ let coro = match coroutine_kind {
267
276
Some ( ast:: CoroutineKind :: Async { .. } ) => "async " ,
268
277
Some ( ast:: CoroutineKind :: Gen { .. } ) => "gen " ,
269
278
None => "" ,
@@ -343,7 +352,7 @@ pub(crate) fn rewrite_last_closure(
343
352
ref binder,
344
353
constness,
345
354
capture_clause,
346
- ref coro_kind ,
355
+ ref coroutine_kind ,
347
356
movability,
348
357
ref fn_decl,
349
358
ref body,
@@ -364,7 +373,7 @@ pub(crate) fn rewrite_last_closure(
364
373
binder,
365
374
constness,
366
375
capture_clause,
367
- coro_kind ,
376
+ coroutine_kind ,
368
377
movability,
369
378
fn_decl,
370
379
body,
0 commit comments