about summary refs log tree commit diff
path: root/tests/coverage/try_error_result.coverage
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-04-12 17:52:55 +1000
committerZalathar <Zalathar@users.noreply.github.com>2025-05-06 20:42:25 +1000
commit4d5a1acebfe031ca2af75786295a2cd2a0633943 (patch)
treea0b54774a87c3b03b526566969c395a0dd4add2c /tests/coverage/try_error_result.coverage
parent651e9cf327358b28db7e37a2ae61727f4a2ef232 (diff)
downloadrust-4d5a1acebfe031ca2af75786295a2cd2a0633943.tar.gz
rust-4d5a1acebfe031ca2af75786295a2cd2a0633943.zip
coverage: Only merge adjacent coverage spans
This also removes some manipulation of the function signature span that only
made sense in the context of merging non-adjacent spans.
Diffstat (limited to 'tests/coverage/try_error_result.coverage')
-rw-r--r--tests/coverage/try_error_result.coverage12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/coverage/try_error_result.coverage b/tests/coverage/try_error_result.coverage
index 7a89c0452ac..f2ec82f20fa 100644
--- a/tests/coverage/try_error_result.coverage
+++ b/tests/coverage/try_error_result.coverage
@@ -21,8 +21,8 @@
    LL|       |    {
    LL|      6|        countdown
    LL|      6|            -= 1
-   LL|      6|        ;
-   LL|      6|        if
+   LL|       |        ;
+   LL|       |        if
    LL|      6|            countdown < 5
    LL|       |        {
    LL|      1|            call(/*return_error=*/ true)?;
@@ -71,19 +71,19 @@
    LL|       |    {
    LL|      6|        countdown
    LL|      6|            -= 1
-   LL|      6|        ;
-   LL|      6|        if
+   LL|       |        ;
+   LL|       |        if
    LL|      6|            countdown < 5
    LL|       |        {
    LL|      1|            thing1.get_thing_2(/*err=*/ false)?.call(/*err=*/ true).expect_err("call should fail");
                                                             ^0
    LL|      1|            thing1
-   LL|      1|                .
+   LL|       |                .
    LL|      1|                get_thing_2(/*return_error=*/ false)
    LL|      0|                ?
    LL|       |                .
    LL|      1|                call(/*return_error=*/ true)
-   LL|      1|                .
+   LL|       |                .
    LL|      1|                expect_err(
    LL|      1|                    "call should fail"
    LL|       |                );