diff options
| author | Eric Holk <ericholk@microsoft.com> | 2023-11-30 14:54:39 -0800 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2023-12-04 12:48:01 -0800 |
| commit | 48d5f1f0f26b78f76c5fcf0dda5ac93b8754aeb6 (patch) | |
| tree | 09280f2a00a4e2fd4e7a8f3a3c49062239a64409 /compiler/rustc_ast_passes/src/ast_validation.rs | |
| parent | 3887b1645aaa85e2755a54ab91f40c4fedc1dc0f (diff) | |
| download | rust-48d5f1f0f26b78f76c5fcf0dda5ac93b8754aeb6.tar.gz rust-48d5f1f0f26b78f76c5fcf0dda5ac93b8754aeb6.zip | |
Merge Async and Gen into CoroutineKind
Diffstat (limited to 'compiler/rustc_ast_passes/src/ast_validation.rs')
| -rw-r--r-- | compiler/rustc_ast_passes/src/ast_validation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_passes/src/ast_validation.rs b/compiler/rustc_ast_passes/src/ast_validation.rs index 45b5e63bd1b..ce680afdc3e 100644 --- a/compiler/rustc_ast_passes/src/ast_validation.rs +++ b/compiler/rustc_ast_passes/src/ast_validation.rs @@ -1271,7 +1271,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> { // Functions cannot both be `const async` if let Some(&FnHeader { constness: Const::Yes(cspan), - asyncness: Async::Yes { span: aspan, .. }, + coro_kind: CoroutineKind::Async { span: aspan, .. }, .. }) = fk.header() { |
