1
Fork 0

Rename some more coro_kind -> coroutine_kind

This commit is contained in:
Michael Goulet 2023-12-08 21:46:30 +00:00
parent d5dcd85376
commit 384a49edd0
3 changed files with 9 additions and 8 deletions

View file

@ -1271,11 +1271,11 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
// Functions cannot both be `const async` or `const gen`
if let Some(&FnHeader {
constness: Const::Yes(cspan),
coroutine_kind: Some(coro_kind),
coroutine_kind: Some(coroutine_kind),
..
}) = fk.header()
{
let aspan = match coro_kind {
let aspan = match coroutine_kind {
CoroutineKind::Async { span: aspan, .. }
| CoroutineKind::Gen { span: aspan, .. }
| CoroutineKind::AsyncGen { span: aspan, .. } => aspan,