diff options
author | bors <bors@rust-lang.org> | 2022-12-04 22:46:11 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2022-12-04 22:46:11 +0000 |
commit | d1449560e31f7f801d81268a3dad783181656dff (patch) | |
tree | d56ddb5e322b58132ce5e60aa5bfa6774b551a86 /tests/rustdoc-js-std/parser-errors.js | |
parent | 53e4b9dd74c29cc9308b8d0f10facac70bb101a7 (diff) | |
parent | b5ae4c9629f697034fb93f660202f354f13b74c3 (diff) | |
download | rust-d1449560e31f7f801d81268a3dad783181656dff.tar.gz |
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`
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions