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_builtin_macros/src | |
| parent | 3887b1645aaa85e2755a54ab91f40c4fedc1dc0f (diff) | |
| download | rust-48d5f1f0f26b78f76c5fcf0dda5ac93b8754aeb6.tar.gz rust-48d5f1f0f26b78f76c5fcf0dda5ac93b8754aeb6.zip | |
Merge Async and Gen into CoroutineKind
Diffstat (limited to 'compiler/rustc_builtin_macros/src')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/test.rs b/compiler/rustc_builtin_macros/src/test.rs index bf1e1ebf5dd..8f4234b4138 100644 --- a/compiler/rustc_builtin_macros/src/test.rs +++ b/compiler/rustc_builtin_macros/src/test.rs @@ -541,7 +541,7 @@ fn check_test_signature( return Err(sd.emit_err(errors::TestBadFn { span: i.span, cause: span, kind: "unsafe" })); } - if let ast::Async::Yes { span, .. } = f.sig.header.asyncness { + if let ast::CoroutineKind::Async { span, .. } = f.sig.header.coro_kind { return Err(sd.emit_err(errors::TestBadFn { span: i.span, cause: span, kind: "async" })); } |
