about summary refs log tree commit diff
path: root/tests/coverage/loop-break.cov-map
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-03-29 21:33:01 +1100
committerZalathar <Zalathar@users.noreply.github.com>2025-04-01 13:07:33 +1100
commit577272eedeaace00aa695135b3b8fee3768536a5 (patch)
tree06840554b25497719eb44cc3fd166300991fac1f /tests/coverage/loop-break.cov-map
parente80a3e22328641b43a5ea66bfafdfe5950686779 (diff)
downloadrust-577272eedeaace00aa695135b3b8fee3768536a5.tar.gz
rust-577272eedeaace00aa695135b3b8fee3768536a5.zip
coverage: Shrink call spans to just the function name
This is a way to shrink call spans that doesn't involve mixing different spans,
and avoids overlap with argument spans.

This patch also removes some low-value comments that were causing rustfmt to
ignore the match arms.
Diffstat (limited to 'tests/coverage/loop-break.cov-map')
-rw-r--r--tests/coverage/loop-break.cov-map4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/coverage/loop-break.cov-map b/tests/coverage/loop-break.cov-map
index f13e82da151..fccc4d64395 100644
--- a/tests/coverage/loop-break.cov-map
+++ b/tests/coverage/loop-break.cov-map
@@ -1,12 +1,12 @@
 Function name: loop_break::main
-Raw bytes (31): 0x[01, 01, 01, 05, 01, 05, 01, 03, 01, 00, 0b, 05, 02, 0c, 00, 27, 01, 01, 0d, 00, 12, 02, 01, 09, 00, 0a, 01, 02, 01, 00, 02]
+Raw bytes (31): 0x[01, 01, 01, 05, 01, 05, 01, 03, 01, 00, 0b, 05, 02, 0c, 00, 21, 01, 01, 0d, 00, 12, 02, 01, 09, 00, 0a, 01, 02, 01, 00, 02]
 Number of files: 1
 - file 0 => global file 1
 Number of expressions: 1
 - expression 0 operands: lhs = Counter(1), rhs = Counter(0)
 Number of file 0 mappings: 5
 - Code(Counter(0)) at (prev + 3, 1) to (start + 0, 11)
-- Code(Counter(1)) at (prev + 2, 12) to (start + 0, 39)
+- Code(Counter(1)) at (prev + 2, 12) to (start + 0, 33)
 - Code(Counter(0)) at (prev + 1, 13) to (start + 0, 18)
 - Code(Expression(0, Sub)) at (prev + 1, 9) to (start + 0, 10)
     = (c1 - c0)