Merge Async and Gen into CoroutineKind
This commit is contained in:
parent
3887b1645a
commit
48d5f1f0f2
25 changed files with 442 additions and 238 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue