summary refs log tree commit diff
path: root/tests/ui/coroutine
AgeCommit message (Collapse)AuthorLines
2023-11-30Fix coroutine validation for mixed panic strategyTomasz Miąsko-0/+24
Validation introduced in #113124 allows UnwindAction::Continue and TerminatorKind::Resume to occur only in functions with ABI that can unwind. The function ABI depends on the panic strategy, which can vary across crates. Usually MIR is built and validated in the same crate. The coroutine drop glue thus far was an exception. As a result validation could fail when mixing different panic strategies. Avoid the problem by executing AbortUnwindingCalls along with the validation. (cherry picked from commit 5161b22143bf9a726cfd69d19bef11552d0ed519)
2023-11-08generator layout: ignore fake borrowslcnr-0/+34
2023-11-02dropck_outlives check generator witness needs_droplcnr-37/+10
2023-10-30Only run panic tests on targets that can unwindOli Scherer-1/+2
2023-10-30Add a custom panic message for resuming `gen` blocks after they panickedOli Scherer-0/+37
2023-10-30Talk about `gen fn` in diagnostics about `gen fn`Oli Scherer-3/+3
2023-10-27Fuse `gen` blocksOli Scherer-19/+2
2023-10-27Use targetted diagnostic for borrow across yield errorOli Scherer-2/+2
2023-10-27Prevent generators from being movableOli Scherer-0/+28
2023-10-27Handle `move` generatorsOli Scherer-0/+98
2023-10-27Feature gate coroutine `yield` usageOli Scherer-5/+25
2023-10-27Demonstrate issue with `yield` checksOli Scherer-2/+15
2023-10-27Feature gate `gen` blocks, even in 2024 editionOli Scherer-5/+5
2023-10-27Basic generators workOli Scherer-0/+18
2023-10-27Make `gen` blocks implement the `Iterator` traitOli Scherer-0/+78
2023-10-27Add gen blocks to ast and do some broken ast loweringOli Scherer-10/+10
2023-10-26Reserve `gen` keyword for `gen {}` blocks and `gen fn` in 2024 editionOli Scherer-0/+78
2023-10-20Rename `generator` folderOli Scherer-0/+5490