rust/compiler/rustc_trait_selection
bors d1449560e3 Auto merge of #105094 - Swatinem:generator-not-future, r=compiler-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 https://github.com/rust-lang/rust/pull/105082#issuecomment-1332210907 and is a regression from https://github.com/rust-lang/rust/pull/104321.

r? `@compiler-errors`
2022-12-04 22:46:11 +00:00
..
src Auto merge of #105094 - Swatinem:generator-not-future, r=compiler-errors 2022-12-04 22:46:11 +00:00
Cargo.toml Remove from compiler/ crates 2022-09-29 16:49:04 +09:00