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
This commit is contained in:
commit
e8678b1030
71 changed files with 305 additions and 241 deletions
|
@ -1,6 +1,8 @@
|
|||
LL| |#![feature(coverage_attribute)]
|
||||
LL| |#![feature(custom_inner_attributes)] // for #![rustfmt::skip]
|
||||
LL| |#![feature(noop_waker)]
|
||||
LL| |#![allow(unused_assignments, dead_code)]
|
||||
LL| |#![rustfmt::skip]
|
||||
LL| |// edition: 2018
|
||||
LL| |// compile-flags: -Copt-level=1
|
||||
LL| |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue