Commit graph

3 commits

Author SHA1 Message Date
Oli Scherer aef0f4024a Error on using yield without also using #[coroutine] on the closure
And suggest adding the `#[coroutine]` to the closure
2024-04-24 08:05:29 +00:00
Tomasz Miąsko a48cebc4b8 Coroutine variant fields can be uninitialized
Wrap coroutine variant fields in MaybeUninit to indicate that they
might be uninitialized. Otherwise an uninhabited field will make
the entire variant uninhabited and introduce undefined behaviour.

The analogous issue in the prefix of coroutine layout was addressed by
6fae7f8071.
2023-12-12 00:00:00 +00:00
Oli Scherer af93c20c06 Rename lots of files that had generator in their name 2023-10-20 21:14:02 +00:00
Renamed from tests/ui/print_type_sizes/generator_discr_placement.stdout (Browse further)