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(
275275 let coro = match coroutine_kind {
276276 Some ( ast:: CoroutineKind :: Async { .. } ) => "async " ,
277277 Some ( ast:: CoroutineKind :: Gen { .. } ) => "gen " ,
278+ Some ( ast:: CoroutineKind :: AsyncGen { .. } ) => "async gen " ,
278279 None => "" ,
279280 } ;
280281 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 {
7979 match coroutine_kind {
8080 ast:: CoroutineKind :: Async { .. } => "async " ,
8181 ast:: CoroutineKind :: Gen { .. } => "gen " ,
82+ ast:: CoroutineKind :: AsyncGen { .. } => "async gen " ,
8283 }
8384}
8485
You can’t perform that action at this time.
0 commit comments