]> git.lizzy.rs Git - rust.git/commit
Add test for Future inflating arg size to 3x
authorArpad Borsos <swatinem@swatinem.de>
Sun, 5 Feb 2023 16:32:52 +0000 (17:32 +0100)
committerArpad Borsos <swatinem@swatinem.de>
Tue, 7 Feb 2023 07:52:15 +0000 (08:52 +0100)
commit7a7b2e352108e17dc4ac834b02ff59e7f81a2c5d
tree38b5faf44581a74f169d277c637455a7d0449097
parentdffea43fc1102bdfe16d88ed412c23d4f0f08d9d
Add test for Future inflating arg size to 3x

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).
tests/ui/async-await/future-sizes/async-awaiting-fut.rs [new file with mode: 0644]
tests/ui/async-await/future-sizes/async-awaiting-fut.stdout [new file with mode: 0644]