about summary refs log tree commit diff
path: root/tests/ui/async-await/future-sizes
AgeCommit message (Collapse)AuthorLines
2025-09-12ci: Increase `rust.debuginfo-level-tests` to `2` in `x86_64-gnu-debug` jobMartin Nordholts-0/+4
Simply to increase the scope of the testing. Force debuginfo=0 for a handful of tests so that we can have CI prevent regressing on more tests.
2025-09-01pub async fn implementation coroutine (func::{closure#0}) is monomorphized, ↵Andrew Zhogin-2/+85
when func itself is monomorphized
2024-08-20bless ui testsRalf Jung-11/+9
2024-03-25In `pretty_print_type()`, print `async fn` futures' paths instead of spans.Kevin Reid-27/+27
This makes `-Zprint-type-sizes`'s output easier to read, because the name of an `async fn` is more immediately recognizable than its span. I also deleted the comment "FIXME(eddyb) should use `def_span`." because it appears to have already been fixed by commit 67727aa7c31a24ea73a91a9134c3653fae8209ab.
2024-03-22-Zprint-type-sizes: print the types of awaitees and unnamed coroutine locals.Kevin Reid-10/+10
This should assist comprehending the size of coroutines. In particular, whenever a future is suspended while awaiting another future, the latter is given the special name `__awaitee`, and now the type of the awaited future will be printed, allowing identifying caller/callee — er, I mean, poller/pollee — relationships. It would be possible to include the type name in more cases, but I thought that that might be overly verbose (`print-type-sizes` is already a lot of text) and ordinary named fields or variables are easier for readers to discover the types of.
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-10/+10
2023-12-12Coroutine variant fields can be uninitializedTomasz Miąsko-0/+6
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 6fae7f807146e400fa2bbd1c44768d9bcaa57c4c.
2023-10-20s/generator/coroutine/Oli Scherer-3/+3
2023-09-21adjust how closure/generator types and rvalues are printedRalf Jung-41/+41
2023-04-27bless testsThe 8472-34/+30
2023-02-07Add test for Future inflating arg size to 3xArpad Borsos-0/+96
This adds one more test that should track improvements to generator layout, like #62958 and #62575. In particular, this test highlights suboptimal layout, as the storage for the argument future is not being reused across its usage as `upvar`, `local` and `awaitee` (being polled to completion).
2023-02-05Sort Generator `print-type-sizes` according to their yield pointsArpad Borsos-5/+5
Especially when trying to diagnose runaway future sizes, it might be more intuitive to sort the variants according to the control flow (aka their yield points) rather than the size of the variants.
2023-02-02Bless tests after rebaseBryan Garza-14/+14
2023-02-02Update test to not trigger stack overflowBryan Garza-8/+5
2023-02-02Move ignore-pass to large-arg testBryan Garza-11/+11
2023-02-02Update based on PR commentsBryan Garza-0/+97