File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,7 @@ fn rewrite_closure_fn_decl(
275
275
let coro = match coroutine_kind {
276
276
Some ( ast:: CoroutineKind :: Async { .. } ) => "async " ,
277
277
Some ( ast:: CoroutineKind :: Gen { .. } ) => "gen " ,
278
+ Some ( ast:: CoroutineKind :: AsyncGen { .. } ) => "async gen " ,
278
279
None => "" ,
279
280
} ;
280
281
let mover = if matches ! ( capture, ast:: CaptureBy :: Value { .. } ) {
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ pub(crate) fn format_coro(coroutine_kind: &ast::CoroutineKind) -> &'static str {
79
79
match coroutine_kind {
80
80
ast:: CoroutineKind :: Async { .. } => "async " ,
81
81
ast:: CoroutineKind :: Gen { .. } => "gen " ,
82
+ ast:: CoroutineKind :: AsyncGen { .. } => "async gen " ,
82
83
}
83
84
}
84
85
You can’t perform that action at this time.
0 commit comments