rust/compiler/rustc_trait_selection/src
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
..
traits Auto merge of #105094 - Swatinem:generator-not-future, r=compiler-errors 2022-12-04 22:46:11 +00:00
autoderef.rs partially_normalize_... -> At::normalize 2022-11-28 17:35:39 +00:00
errors.rs Don't print full paths in overlap errors 2022-11-10 05:41:09 +00:00
infer.rs partially_normalize_... -> At::normalize 2022-11-28 17:35:39 +00:00
lib.rs Use iterators instead of slices at more sites 2022-11-21 20:34:28 +00:00