diff options
| author | Eric Holk <ericholk@microsoft.com> | 2023-11-30 16:39:56 -0800 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2023-12-04 13:03:37 -0800 |
| commit | f9d1f922dcd335e534d40923ab54088c07a5403e (patch) | |
| tree | c268e5049e6492ebdbe081b049c562b51031d799 /compiler/rustc_builtin_macros/src/test.rs | |
| parent | 48d5f1f0f26b78f76c5fcf0dda5ac93b8754aeb6 (diff) | |
| download | rust-f9d1f922dcd335e534d40923ab54088c07a5403e.tar.gz rust-f9d1f922dcd335e534d40923ab54088c07a5403e.zip | |
Option<CoroutineKind>
Diffstat (limited to 'compiler/rustc_builtin_macros/src/test.rs')
| -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 8f4234b4138..38fdddf5834 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::CoroutineKind::Async { span, .. } = f.sig.header.coro_kind { + if let Some(ast::CoroutineKind::Async { span, .. }) = f.sig.header.coro_kind { return Err(sd.emit_err(errors::TestBadFn { span: i.span, cause: span, kind: "async" })); } |
