1
Fork 0

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`.
This commit is contained in:
Zalathar 2024-05-29 14:27:57 +10:00
parent 448d63e946
commit 9dc6e08279
12 changed files with 34 additions and 44 deletions

View file

@ -5,7 +5,8 @@
LL| |use std::pin::Pin;
LL| |
LL| 1|fn main() {
LL| 1| let mut coroutine = #[coroutine] || {
LL| 1| let mut coroutine = #[coroutine]
LL| 1| || {
LL| 1| yield 1;
LL| 1| return "foo";
LL| 1| };
@ -19,7 +20,8 @@
LL| 0| _ => panic!("unexpected value from resume"),
LL| | }
LL| |
LL| 1| let mut coroutine = #[coroutine] || {
LL| 1| let mut coroutine = #[coroutine]
LL| 1| || {
LL| 1| yield 1;
LL| 1| yield 2;
LL| 0| yield 3;