about summary refs log tree commit diff
path: root/tests/coverage/auto-derived.auto.coverage
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-07-28 12:25:05 +1000
committerZalathar <Zalathar@users.noreply.github.com>2025-07-29 19:56:31 +1000
commit682f744f89e1c014e91b2fd7058c75f2056ac870 (patch)
treea0311d34d05ab6073afc2f9f1d53f8cd68d24d99 /tests/coverage/auto-derived.auto.coverage
parentb4d0c91635e87be830282cb86d23882b6b6f9dad (diff)
downloadrust-682f744f89e1c014e91b2fd7058c75f2056ac870.tar.gz
rust-682f744f89e1c014e91b2fd7058c75f2056ac870.zip
coverage: Treat `#[automatically_derived]` as `#[coverage(off)]`
Diffstat (limited to 'tests/coverage/auto-derived.auto.coverage')
-rw-r--r--tests/coverage/auto-derived.auto.coverage12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/coverage/auto-derived.auto.coverage b/tests/coverage/auto-derived.auto.coverage
index 960bd11ec3a..242abbf8031 100644
--- a/tests/coverage/auto-derived.auto.coverage
+++ b/tests/coverage/auto-derived.auto.coverage
@@ -23,18 +23,18 @@
    LL|       |#[cfg_attr(on, coverage(on))]
    LL|       |impl MyTrait for MyStruct {
    LL|       |    fn my_assoc_fn() {
-   LL|      1|        fn inner_fn() {
-   LL|      1|            say("in inner fn");
-   LL|      1|        }
+   LL|       |        fn inner_fn() {
+   LL|       |            say("in inner fn");
+   LL|       |        }
    LL|       |
    LL|       |        #[coverage(on)]
    LL|      1|        fn inner_fn_on() {
    LL|      1|            say("in inner fn (on)");
    LL|      1|        }
    LL|       |
-   LL|      1|        let closure = || {
-   LL|      1|            say("in closure");
-   LL|      1|        };
+   LL|       |        let closure = || {
+   LL|       |            say("in closure");
+   LL|       |        };
    LL|       |
    LL|       |        closure();
    LL|       |        inner_fn();