Skip to content

Commit

Permalink
Auto merge of rust-lang#105094 - Swatinem:generator-not-future, r=com…
Browse files Browse the repository at this point in the history
…piler-errors

Make sure async constructs do not `impl Generator`

Async lowering turns async functions and blocks into generators internally.
Though these special kinds of generators should not `impl Generator` themselves.
The other way around, normal generators should not `impl Future`.

This was discovered in rust-lang#105082 (comment) and is a regression from rust-lang#104321.

r? `@compiler-errors`
  • Loading branch information
bors committed Dec 4, 2022
2 parents 97fb4fa + 61d6172 commit 3dc1bcf
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 3dc1bcf

Please sign in to comment.