Skip to content

Commit

Permalink
Rollup merge of #120015 - Zalathar:format, r=dtolnay
Browse files Browse the repository at this point in the history
coverage: Format all coverage tests with `rustfmt`

As suggested by <rust-lang/rust#119984 (comment)>.

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
  • Loading branch information
Nadrieril committed Jan 21, 2024
2 parents da8e24f + 1cc9d70 commit 1a5643b
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 1a5643b

Please sign in to comment.