diff options
| author | Nadrieril <Nadrieril@users.noreply.github.com> | 2024-01-21 06:38:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-21 06:38:37 +0100 |
| commit | e8678b1030c50173ff29d77eae215b1f8472571d (patch) | |
| tree | cf262674f0195bfe89ff959245fdd78bbe1f80a6 /tests/coverage/closure_macro_async.coverage | |
| parent | a1b41a9048e780acc82f2ecce13d689f70be0ef1 (diff) | |
| parent | 99797bbd9fdb138dd59a782f156db8397d07943c (diff) | |
| download | rust-e8678b1030c50173ff29d77eae215b1f8472571d.tar.gz rust-e8678b1030c50173ff29d77eae215b1f8472571d.zip | |
Rollup merge of #120015 - Zalathar:format, r=dtolnay
coverage: Format all coverage tests with `rustfmt` As suggested by <https://github.com/rust-lang/rust/pull/119984#discussion_r1452856806>. Test files in `tests/` are normally ignored by `x fmt`, but sometimes those files end up being run through `rustfmt` anyway, either by `rust-analyzer` or by hand. When that happens, it's annoying to have to manually revert formatting changes that are unrelated to the actual changes being made. So it's helpful for the tests in the repository to already have standard formatting beforehand. However, there are several coverage tests that deliberately use non-standard formatting, so that line counts reveal more information about where code regions begin and end. In those cases, we can use `#[rustfmt::skip]` to prevent that code from being disturbed. ``@rustbot`` label +A-code-coverage
Diffstat (limited to 'tests/coverage/closure_macro_async.coverage')
| -rw-r--r-- | tests/coverage/closure_macro_async.coverage | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/coverage/closure_macro_async.coverage b/tests/coverage/closure_macro_async.coverage index 2336d4d0528..d67c2ed524b 100644 --- a/tests/coverage/closure_macro_async.coverage +++ b/tests/coverage/closure_macro_async.coverage @@ -15,7 +15,8 @@ LL| | LL| |macro_rules! on_error { LL| | ($value:expr, $error_message:expr) => { - LL| | $value.or_else(|e| { // FIXME(85000): no coverage in closure macros + LL| | $value.or_else(|e| { + LL| | // FIXME(85000): no coverage in closure macros LL| | let message = format!($error_message, e); LL| | if message.len() > 0 { LL| | println!("{}", message); |
