about summary refs log tree commit diff
path: root/tests/run-coverage
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-10-17 18:58:35 +1100
committerZalathar <Zalathar@users.noreply.github.com>2023-10-21 11:53:27 +1100
commita17ff82aaec7a693c1cfe50bfc221dac4b06f8ad (patch)
treea9c25d1480d119ac83a6f8fca294532a6db6ddd9 /tests/run-coverage
parentdca42959bc4c71243674efe943e85f91f41aeb6a (diff)
coverage: Handle fn signature spans more consistently near `?`
Diffstat (limited to 'tests/run-coverage')
-rw-r--r--tests/run-coverage/fn_sig_into_try.coverage8
-rw-r--r--tests/run-coverage/issue-84561.coverage2
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/run-coverage/fn_sig_into_try.coverage b/tests/run-coverage/fn_sig_into_try.coverage
index 86defeeb9da..f1ddb1da780 100644
--- a/tests/run-coverage/fn_sig_into_try.coverage
+++ b/tests/run-coverage/fn_sig_into_try.coverage
@@ -13,15 +13,15 @@
    LL|      1|    Some(0)
    LL|      1|}
    LL|       |
-   LL|       |fn b() -> Option<i32>
-   LL|       |{
+   LL|      1|fn b() -> Option<i32>
+   LL|      1|{
    LL|      1|    Some(7i32)?;
                             ^0
    LL|      1|    Some(0)
    LL|      1|}
    LL|       |
-   LL|       |fn c() -> Option<i32>
-   LL|       |{
+   LL|      1|fn c() -> Option<i32>
+   LL|      1|{
    LL|      1|    let _ = Some(7i32)?;
                                     ^0
    LL|      1|    Some(0)
diff --git a/tests/run-coverage/issue-84561.coverage b/tests/run-coverage/issue-84561.coverage
index 222f877d36a..e693866e277 100644
--- a/tests/run-coverage/issue-84561.coverage
+++ b/tests/run-coverage/issue-84561.coverage
@@ -135,7 +135,7 @@
    LL|      0|}
    LL|       |
    LL|       |impl std::fmt::Debug for Foo {
-   LL|       |    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
+   LL|      7|    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
    LL|      7|        write!(f, "try and succeed")?;
                                                   ^0
    LL|      7|        Ok(())