diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-05-29 14:27:57 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-05-29 14:34:17 +1000 |
| commit | 9dc6e082791fe0f3116c34a922de75947883644c (patch) | |
| tree | c6d658d26e26531e91ddc9c524da8f5f29c02444 /tests/coverage/yield.rs | |
| parent | 448d63e9469c293c3855867d29cbff210691db92 (diff) | |
| download | rust-9dc6e082791fe0f3116c34a922de75947883644c.tar.gz rust-9dc6e082791fe0f3116c34a922de75947883644c.zip | |
Manually run `x fmt` on all source files in `tests/coverage/`
Currently we can't automatically enforce formatting on tests (see #125637), but we can at least keep things relatively tidy by occasionally running the formatter manually. This was done by temporarily commenting out the `"/tests/"` exclusion in `rustfmt.toml`, and then running `x fmt tests/coverage` and `x test coverage --bless`.
Diffstat (limited to 'tests/coverage/yield.rs')
| -rw-r--r-- | tests/coverage/yield.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/coverage/yield.rs b/tests/coverage/yield.rs index 64ea2706604..e02e3d35612 100644 --- a/tests/coverage/yield.rs +++ b/tests/coverage/yield.rs @@ -5,7 +5,8 @@ use std::ops::{Coroutine, CoroutineState}; use std::pin::Pin; fn main() { - let mut coroutine = #[coroutine] || { + let mut coroutine = #[coroutine] + || { yield 1; return "foo"; }; @@ -19,7 +20,8 @@ fn main() { _ => panic!("unexpected value from resume"), } - let mut coroutine = #[coroutine] || { + let mut coroutine = #[coroutine] + || { yield 1; yield 2; yield 3; |
