Zalathar
e96b4e479a
coverage: Extract executor::block_on
from several async coverage tests
...
By moving `block_on` to an auxiliary crate, we avoid having to keep a separate
copy of it in every async test.
(This also incorporates some small tweaks to the headers in `await_ready.rs`.)
2024-09-10 16:08:36 +10:00
许杰友 Jieyou Xu (Joe)
6e48b96692
[AUTO_GENERATED] Migrate compiletest to use ui_test
-style //@
directives
2024-02-22 16:04:04 +00:00
Kevin Reid
c48cdfe8ee
Remove unnecessary let
s and borrowing from Waker::noop()
usage.
...
`Waker::noop()` now returns a `&'static Waker` reference, so it can be
passed directly to `Context` creation with no temporary lifetime issue.
2024-01-17 12:00:27 -08:00
Zalathar
4ae792036e
coverage: Add a test for async
blocks
...
We have coverage tests that use async functions, but none that use async
blocks.
2023-12-20 18:48:04 +11:00