Skip to content

Commit

Permalink
Auto merge of #105094 - Swatinem:generator-not-future, r=compiler-errors
Browse files Browse the repository at this point in the history
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/rust#105082 (comment) and is a regression from rust-lang/rust#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.