Merge Async and Gen into CoroutineKind
This commit is contained in:
@@ -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" }));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user