diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-03-25 20:34:32 +1100 | 
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-04-01 13:13:20 +1100 | 
| commit | 62a533ce7801ac35344f3ebaa983e90dbeba447a (patch) | |
| tree | cd42bc7e0af0128dce0289a976264529865bc3c1 /tests/coverage/closure.coverage | |
| parent | 577272eedeaace00aa695135b3b8fee3768536a5 (diff) | |
| download | rust-62a533ce7801ac35344f3ebaa983e90dbeba447a.tar.gz rust-62a533ce7801ac35344f3ebaa983e90dbeba447a.zip | |
coverage: Instead of splitting, just discard any span that overlaps a hole
Diffstat (limited to 'tests/coverage/closure.coverage')
| -rw-r--r-- | tests/coverage/closure.coverage | 22 | 
1 files changed, 11 insertions, 11 deletions
| diff --git a/tests/coverage/closure.coverage b/tests/coverage/closure.coverage index 3eac52eb723..2deeb9806c4 100644 --- a/tests/coverage/closure.coverage +++ b/tests/coverage/closure.coverage @@ -20,18 +20,18 @@ LL| 1| some_string LL| 1| . LL| 1| unwrap_or_else - LL| 1| ( - LL| 1| || + LL| | ( + LL| | || LL| 0| { LL| 0| let mut countdown = 0; LL| 0| if is_false { LL| 0| countdown = 10; LL| 0| } LL| 0| "alt string 1".to_owned() - LL| 1| } - LL| 1| ) - LL| 1| ); - LL| 1| + LL| 0| } + LL| | ) + LL| | ); + LL| | LL| 1| some_string = Some(String::from("the string content")); LL| 1| let LL| 1| a @@ -62,8 +62,8 @@ LL| 1| some_string LL| 1| . LL| 1| unwrap_or_else - LL| 1| ( - LL| 1| || + LL| | ( + LL| | || LL| 1| { LL| 1| let mut countdown = 0; LL| 1| if is_false { @@ -71,9 +71,9 @@ LL| 1| } LL| 1| "alt string 3".to_owned() LL| 1| } - LL| 1| ) - LL| 1| ); - LL| 1| + LL| | ) + LL| | ); + LL| | LL| 1| some_string = None; LL| 1| let LL| 1| a | 
