about summary refs log tree commit diff
path: root/tests/coverage/closure.coverage
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-01-16 13:40:01 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-01-16 15:56:37 +1100
commitf1494425bbb68e71f2bf3aa215fb71978b36acf2 (patch)
tree4676a1d861e10d24c2d7938046b7e7a28d6f5cda /tests/coverage/closure.coverage
parent714b29a17ff5fa727c794bbb60bfd335f8e75d42 (diff)
downloadrust-f1494425bbb68e71f2bf3aa215fb71978b36acf2.tar.gz
rust-f1494425bbb68e71f2bf3aa215fb71978b36acf2.zip
coverage: Add `#[rustfmt::skip]` to tests with non-standard formatting
These tests deliberately use non-standard formatting, so that the line
execution counts reported by `llvm-cov` reveal additional information about
where code regions begin and end.
Diffstat (limited to 'tests/coverage/closure.coverage')
-rw-r--r--tests/coverage/closure.coverage1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/coverage/closure.coverage b/tests/coverage/closure.coverage
index 67014f792c8..58224eeaf62 100644
--- a/tests/coverage/closure.coverage
+++ b/tests/coverage/closure.coverage
@@ -5,6 +5,7 @@
    LL|       |// `rustc_middle/mir/mono.rs`, but those hacks were later cleaned up by
    LL|       |// <https://github.com/rust-lang/rust/pull/83666>.
    LL|       |
+   LL|       |#[rustfmt::skip]
    LL|      1|fn main() {
    LL|      1|    // Initialize test constants in a way that cannot be determined at compile time, to ensure
    LL|      1|    // rustc and LLVM cannot optimize out statements (or coverage counters) downstream from