Skip to content

Commit 59a11af

Browse files
committed
coverage: Mappings for unused functions can all be zero
There is no need to include a dummy counter reference in the coverage mappings for an unused function.
1 parent 2e5a9dd commit 59a11af

File tree

10 files changed

+65
-73
lines changed

10 files changed

+65
-73
lines changed

compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs

+3-11
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ impl<'ll, 'tcx> CodegenCx<'ll, 'tcx> {
8989
/// `function_coverage_map` (keyed by function `Instance`) during codegen.
9090
/// But in this case, since the unused function was _not_ previously
9191
/// codegenned, collect the coverage `CodeRegion`s from the MIR and add
92-
/// them. The first `CodeRegion` is used to add a single counter, with the
93-
/// same counter ID used in the injected `instrprof.increment` intrinsic
94-
/// call. Since the function is never called, all other `CodeRegion`s can be
92+
/// them. Since the function is never called, all of its `CodeRegion`s can be
9593
/// added as `unreachable_region`s.
9694
fn define_unused_fn(&self, def_id: DefId) {
9795
let instance = declare_unused_fn(self, def_id);
@@ -227,14 +225,8 @@ fn add_unused_function_coverage<'tcx>(
227225
let tcx = cx.tcx;
228226

229227
let mut function_coverage = FunctionCoverage::unused(tcx, instance);
230-
for (index, &code_region) in tcx.covered_code_regions(def_id).iter().enumerate() {
231-
if index == 0 {
232-
// Insert at least one real counter so the LLVM CoverageMappingReader will find expected
233-
// definitions.
234-
function_coverage.add_counter(UNUSED_FUNCTION_COUNTER_ID, code_region.clone());
235-
} else {
236-
function_coverage.add_unreachable_region(code_region.clone());
237-
}
228+
for &code_region in tcx.covered_code_regions(def_id) {
229+
function_coverage.add_unreachable_region(code_region.clone());
238230
}
239231

240232
if let Some(coverage_context) = cx.coverage_context() {

tests/coverage-map/status-quo/async.cov-map

+16-16
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@ Number of file 0 mappings: 1
3838
- Code(Counter(0)) at (prev + 13, 20) to (start + 0, 25)
3939

4040
Function name: async::e (unused)
41-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 0f, 01, 00, 14]
41+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 0f, 01, 00, 14]
4242
Number of files: 1
4343
- file 0 => global file 1
4444
Number of expressions: 0
4545
Number of file 0 mappings: 1
46-
- Code(Counter(0)) at (prev + 15, 1) to (start + 0, 20)
46+
- Code(Zero) at (prev + 15, 1) to (start + 0, 20)
4747

4848
Function name: async::e::{closure#0} (unused)
49-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 0f, 14, 00, 19]
49+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 0f, 14, 00, 19]
5050
Number of files: 1
5151
- file 0 => global file 1
5252
Number of expressions: 0
5353
Number of file 0 mappings: 1
54-
- Code(Counter(0)) at (prev + 15, 20) to (start + 0, 25)
54+
- Code(Zero) at (prev + 15, 20) to (start + 0, 25)
5555

5656
Function name: async::executor::block_on::<core::pin::Pin<&mut async::i::{closure#0}>>
5757
Raw bytes (44): 0x[01, 01, 05, 0b, 05, 01, 05, 01, 05, 02, 00, 02, 00, 06, 01, 6e, 05, 0a, 36, 02, 0d, 20, 00, 23, 0b, 00, 27, 00, 49, 0f, 01, 17, 00, 1a, 05, 01, 0e, 00, 0f, 13, 02, 05, 00, 06]
@@ -124,20 +124,20 @@ Number of file 0 mappings: 1
124124
- Code(Counter(0)) at (prev + 17, 20) to (start + 0, 25)
125125

126126
Function name: async::foo (unused)
127-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 13, 01, 00, 1e]
127+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 13, 01, 00, 1e]
128128
Number of files: 1
129129
- file 0 => global file 1
130130
Number of expressions: 0
131131
Number of file 0 mappings: 1
132-
- Code(Counter(0)) at (prev + 19, 1) to (start + 0, 30)
132+
- Code(Zero) at (prev + 19, 1) to (start + 0, 30)
133133

134134
Function name: async::foo::{closure#0} (unused)
135-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 13, 1e, 00, 2d]
135+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 13, 1e, 00, 2d]
136136
Number of files: 1
137137
- file 0 => global file 1
138138
Number of expressions: 0
139139
Number of file 0 mappings: 1
140-
- Code(Counter(0)) at (prev + 19, 30) to (start + 0, 45)
140+
- Code(Zero) at (prev + 19, 30) to (start + 0, 45)
141141

142142
Function name: async::g
143143
Raw bytes (9): 0x[01, 01, 00, 01, 01, 15, 01, 00, 17]
@@ -148,14 +148,14 @@ Number of file 0 mappings: 1
148148
- Code(Counter(0)) at (prev + 21, 1) to (start + 0, 23)
149149

150150
Function name: async::g::{closure#0} (unused)
151-
Raw bytes (69): 0x[01, 01, 00, 0d, 00, 15, 17, 01, 0c, 00, 02, 09, 00, 0a, 01, 00, 0e, 00, 11, 00, 00, 12, 00, 17, 00, 00, 1b, 00, 1c, 00, 00, 20, 00, 22, 00, 01, 09, 00, 0a, 00, 00, 0e, 00, 11, 00, 00, 12, 00, 17, 00, 00, 1b, 00, 1c, 00, 00, 20, 00, 22, 00, 01, 0e, 00, 10, 00, 02, 01, 00, 02]
151+
Raw bytes (69): 0x[01, 01, 00, 0d, 00, 15, 17, 01, 0c, 00, 02, 09, 00, 0a, 00, 00, 0e, 00, 11, 00, 00, 12, 00, 17, 00, 00, 1b, 00, 1c, 00, 00, 20, 00, 22, 00, 01, 09, 00, 0a, 00, 00, 0e, 00, 11, 00, 00, 12, 00, 17, 00, 00, 1b, 00, 1c, 00, 00, 20, 00, 22, 00, 01, 0e, 00, 10, 00, 02, 01, 00, 02]
152152
Number of files: 1
153153
- file 0 => global file 1
154154
Number of expressions: 0
155155
Number of file 0 mappings: 13
156156
- Code(Zero) at (prev + 21, 23) to (start + 1, 12)
157157
- Code(Zero) at (prev + 2, 9) to (start + 0, 10)
158-
- Code(Counter(0)) at (prev + 0, 14) to (start + 0, 17)
158+
- Code(Zero) at (prev + 0, 14) to (start + 0, 17)
159159
- Code(Zero) at (prev + 0, 18) to (start + 0, 23)
160160
- Code(Zero) at (prev + 0, 27) to (start + 0, 28)
161161
- Code(Zero) at (prev + 0, 32) to (start + 0, 34)
@@ -176,14 +176,14 @@ Number of file 0 mappings: 1
176176
- Code(Counter(0)) at (prev + 29, 1) to (start + 0, 22)
177177

178178
Function name: async::h::{closure#0} (unused)
179-
Raw bytes (44): 0x[01, 01, 00, 08, 00, 1d, 16, 03, 0c, 00, 04, 09, 00, 0a, 01, 00, 0e, 00, 13, 00, 00, 14, 00, 19, 00, 00, 1a, 00, 1b, 00, 00, 20, 00, 22, 00, 01, 0e, 00, 10, 00, 02, 01, 00, 02]
179+
Raw bytes (44): 0x[01, 01, 00, 08, 00, 1d, 16, 03, 0c, 00, 04, 09, 00, 0a, 00, 00, 0e, 00, 13, 00, 00, 14, 00, 19, 00, 00, 1a, 00, 1b, 00, 00, 20, 00, 22, 00, 01, 0e, 00, 10, 00, 02, 01, 00, 02]
180180
Number of files: 1
181181
- file 0 => global file 1
182182
Number of expressions: 0
183183
Number of file 0 mappings: 8
184184
- Code(Zero) at (prev + 29, 22) to (start + 3, 12)
185185
- Code(Zero) at (prev + 4, 9) to (start + 0, 10)
186-
- Code(Counter(0)) at (prev + 0, 14) to (start + 0, 19)
186+
- Code(Zero) at (prev + 0, 14) to (start + 0, 19)
187187
- Code(Zero) at (prev + 0, 20) to (start + 0, 25)
188188
- Code(Zero) at (prev + 0, 26) to (start + 0, 27)
189189
- Code(Zero) at (prev + 0, 32) to (start + 0, 34)
@@ -285,12 +285,12 @@ Number of file 0 mappings: 1
285285
- Code(Counter(0)) at (prev + 67, 5) to (start + 0, 23)
286286

287287
Function name: async::k (unused)
288-
Raw bytes (29): 0x[01, 01, 00, 05, 01, 4b, 01, 01, 0c, 00, 02, 0e, 00, 10, 00, 01, 0e, 00, 10, 00, 01, 0e, 00, 10, 00, 02, 01, 00, 02]
288+
Raw bytes (29): 0x[01, 01, 00, 05, 00, 4b, 01, 01, 0c, 00, 02, 0e, 00, 10, 00, 01, 0e, 00, 10, 00, 01, 0e, 00, 10, 00, 02, 01, 00, 02]
289289
Number of files: 1
290290
- file 0 => global file 1
291291
Number of expressions: 0
292292
Number of file 0 mappings: 5
293-
- Code(Counter(0)) at (prev + 75, 1) to (start + 1, 12)
293+
- Code(Zero) at (prev + 75, 1) to (start + 1, 12)
294294
- Code(Zero) at (prev + 2, 14) to (start + 0, 16)
295295
- Code(Zero) at (prev + 1, 14) to (start + 0, 16)
296296
- Code(Zero) at (prev + 1, 14) to (start + 0, 16)
@@ -323,12 +323,12 @@ Number of file 0 mappings: 1
323323
- Code(Counter(0)) at (prev + 91, 1) to (start + 0, 25)
324324

325325
Function name: async::m::{closure#0} (unused)
326-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 5b, 19, 00, 22]
326+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 5b, 19, 00, 22]
327327
Number of files: 1
328328
- file 0 => global file 1
329329
Number of expressions: 0
330330
Number of file 0 mappings: 1
331-
- Code(Counter(0)) at (prev + 91, 25) to (start + 0, 34)
331+
- Code(Zero) at (prev + 91, 25) to (start + 0, 34)
332332

333333
Function name: async::main
334334
Raw bytes (9): 0x[01, 01, 00, 01, 01, 5d, 01, 08, 02]

tests/coverage-map/status-quo/closure.cov-map

+18-18
Original file line numberDiff line numberDiff line change
@@ -90,36 +90,36 @@ Number of file 0 mappings: 4
9090
= (c1 + (c0 - c1))
9191

9292
Function name: closure::main::{closure#10} (unused)
93-
Raw bytes (10): 0x[01, 01, 00, 01, 01, 9a, 01, 07, 00, 21]
93+
Raw bytes (10): 0x[01, 01, 00, 01, 00, 9a, 01, 07, 00, 21]
9494
Number of files: 1
9595
- file 0 => global file 1
9696
Number of expressions: 0
9797
Number of file 0 mappings: 1
98-
- Code(Counter(0)) at (prev + 154, 7) to (start + 0, 33)
98+
- Code(Zero) at (prev + 154, 7) to (start + 0, 33)
9999

100100
Function name: closure::main::{closure#11} (unused)
101-
Raw bytes (10): 0x[01, 01, 00, 01, 01, 9e, 01, 07, 00, 21]
101+
Raw bytes (10): 0x[01, 01, 00, 01, 00, 9e, 01, 07, 00, 21]
102102
Number of files: 1
103103
- file 0 => global file 1
104104
Number of expressions: 0
105105
Number of file 0 mappings: 1
106-
- Code(Counter(0)) at (prev + 158, 7) to (start + 0, 33)
106+
- Code(Zero) at (prev + 158, 7) to (start + 0, 33)
107107

108108
Function name: closure::main::{closure#12} (unused)
109-
Raw bytes (10): 0x[01, 01, 00, 01, 01, a6, 01, 01, 00, 17]
109+
Raw bytes (10): 0x[01, 01, 00, 01, 00, a6, 01, 01, 00, 17]
110110
Number of files: 1
111111
- file 0 => global file 1
112112
Number of expressions: 0
113113
Number of file 0 mappings: 1
114-
- Code(Counter(0)) at (prev + 166, 1) to (start + 0, 23)
114+
- Code(Zero) at (prev + 166, 1) to (start + 0, 23)
115115

116116
Function name: closure::main::{closure#13} (unused)
117-
Raw bytes (10): 0x[01, 01, 00, 01, 01, ab, 01, 0d, 02, 0e]
117+
Raw bytes (10): 0x[01, 01, 00, 01, 00, ab, 01, 0d, 02, 0e]
118118
Number of files: 1
119119
- file 0 => global file 1
120120
Number of expressions: 0
121121
Number of file 0 mappings: 1
122-
- Code(Counter(0)) at (prev + 171, 13) to (start + 2, 14)
122+
- Code(Zero) at (prev + 171, 13) to (start + 2, 14)
123123

124124
Function name: closure::main::{closure#14}
125125
Raw bytes (38): 0x[01, 01, 04, 05, 0a, 01, 05, 01, 05, 03, 00, 05, 03, b2, 01, 0d, 00, 15, 01, 01, 11, 01, 1b, 05, 01, 1e, 00, 25, 0a, 00, 2f, 00, 33, 0f, 01, 0d, 00, 0e]
@@ -264,23 +264,23 @@ Number of file 0 mappings: 4
264264
= (c1 + (c0 - c1))
265265

266266
Function name: closure::main::{closure#3} (unused)
267-
Raw bytes (25): 0x[01, 01, 00, 04, 01, 80, 01, 05, 01, 14, 00, 01, 15, 02, 0a, 00, 02, 0a, 00, 0b, 00, 01, 09, 01, 06]
267+
Raw bytes (25): 0x[01, 01, 00, 04, 00, 80, 01, 05, 01, 14, 00, 01, 15, 02, 0a, 00, 02, 0a, 00, 0b, 00, 01, 09, 01, 06]
268268
Number of files: 1
269269
- file 0 => global file 1
270270
Number of expressions: 0
271271
Number of file 0 mappings: 4
272-
- Code(Counter(0)) at (prev + 128, 5) to (start + 1, 20)
272+
- Code(Zero) at (prev + 128, 5) to (start + 1, 20)
273273
- Code(Zero) at (prev + 1, 21) to (start + 2, 10)
274274
- Code(Zero) at (prev + 2, 10) to (start + 0, 11)
275275
- Code(Zero) at (prev + 1, 9) to (start + 1, 6)
276276

277277
Function name: closure::main::{closure#4} (unused)
278-
Raw bytes (10): 0x[01, 01, 00, 01, 01, 88, 01, 35, 00, 43]
278+
Raw bytes (10): 0x[01, 01, 00, 01, 00, 88, 01, 35, 00, 43]
279279
Number of files: 1
280280
- file 0 => global file 1
281281
Number of expressions: 0
282282
Number of file 0 mappings: 1
283-
- Code(Counter(0)) at (prev + 136, 53) to (start + 0, 67)
283+
- Code(Zero) at (prev + 136, 53) to (start + 0, 67)
284284

285285
Function name: closure::main::{closure#5}
286286
Raw bytes (10): 0x[01, 01, 00, 01, 01, 8b, 01, 3d, 00, 4f]
@@ -299,26 +299,26 @@ Number of file 0 mappings: 1
299299
- Code(Counter(0)) at (prev + 140, 65) to (start + 0, 87)
300300

301301
Function name: closure::main::{closure#7} (unused)
302-
Raw bytes (10): 0x[01, 01, 00, 01, 01, 8d, 01, 3b, 00, 51]
302+
Raw bytes (10): 0x[01, 01, 00, 01, 00, 8d, 01, 3b, 00, 51]
303303
Number of files: 1
304304
- file 0 => global file 1
305305
Number of expressions: 0
306306
Number of file 0 mappings: 1
307-
- Code(Counter(0)) at (prev + 141, 59) to (start + 0, 81)
307+
- Code(Zero) at (prev + 141, 59) to (start + 0, 81)
308308

309309
Function name: closure::main::{closure#8} (unused)
310-
Raw bytes (10): 0x[01, 01, 00, 01, 01, 92, 01, 3b, 00, 55]
310+
Raw bytes (10): 0x[01, 01, 00, 01, 00, 92, 01, 3b, 00, 55]
311311
Number of files: 1
312312
- file 0 => global file 1
313313
Number of expressions: 0
314314
Number of file 0 mappings: 1
315-
- Code(Counter(0)) at (prev + 146, 59) to (start + 0, 85)
315+
- Code(Zero) at (prev + 146, 59) to (start + 0, 85)
316316

317317
Function name: closure::main::{closure#9} (unused)
318-
Raw bytes (10): 0x[01, 01, 00, 01, 01, 94, 01, 38, 02, 06]
318+
Raw bytes (10): 0x[01, 01, 00, 01, 00, 94, 01, 38, 02, 06]
319319
Number of files: 1
320320
- file 0 => global file 1
321321
Number of expressions: 0
322322
Number of file 0 mappings: 1
323-
- Code(Counter(0)) at (prev + 148, 56) to (start + 2, 6)
323+
- Code(Zero) at (prev + 148, 56) to (start + 2, 6)
324324

tests/coverage-map/status-quo/dead_code.cov-map

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ Number of file 0 mappings: 4
1414
= (c1 + (c0 - c1))
1515

1616
Function name: dead_code::unused_fn (unused)
17-
Raw bytes (24): 0x[01, 01, 00, 04, 01, 0f, 01, 07, 0f, 00, 07, 10, 02, 06, 00, 02, 06, 00, 07, 00, 01, 01, 00, 02]
17+
Raw bytes (24): 0x[01, 01, 00, 04, 00, 0f, 01, 07, 0f, 00, 07, 10, 02, 06, 00, 02, 06, 00, 07, 00, 01, 01, 00, 02]
1818
Number of files: 1
1919
- file 0 => global file 1
2020
Number of expressions: 0
2121
Number of file 0 mappings: 4
22-
- Code(Counter(0)) at (prev + 15, 1) to (start + 7, 15)
22+
- Code(Zero) at (prev + 15, 1) to (start + 7, 15)
2323
- Code(Zero) at (prev + 7, 16) to (start + 2, 6)
2424
- Code(Zero) at (prev + 2, 6) to (start + 0, 7)
2525
- Code(Zero) at (prev + 1, 1) to (start + 0, 2)
2626

2727
Function name: dead_code::unused_pub_fn_not_in_library (unused)
28-
Raw bytes (24): 0x[01, 01, 00, 04, 01, 03, 01, 07, 0f, 00, 07, 10, 02, 06, 00, 02, 06, 00, 07, 00, 01, 01, 00, 02]
28+
Raw bytes (24): 0x[01, 01, 00, 04, 00, 03, 01, 07, 0f, 00, 07, 10, 02, 06, 00, 02, 06, 00, 07, 00, 01, 01, 00, 02]
2929
Number of files: 1
3030
- file 0 => global file 1
3131
Number of expressions: 0
3232
Number of file 0 mappings: 4
33-
- Code(Counter(0)) at (prev + 3, 1) to (start + 7, 15)
33+
- Code(Zero) at (prev + 3, 1) to (start + 7, 15)
3434
- Code(Zero) at (prev + 7, 16) to (start + 2, 6)
3535
- Code(Zero) at (prev + 2, 6) to (start + 0, 7)
3636
- Code(Zero) at (prev + 1, 1) to (start + 0, 2)

tests/coverage-map/status-quo/inline-dead.cov-map

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Function name: inline_dead::dead (unused)
2-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 19, 01, 02, 02]
2+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 19, 01, 02, 02]
33
Number of files: 1
44
- file 0 => global file 1
55
Number of expressions: 0
66
Number of file 0 mappings: 1
7-
- Code(Counter(0)) at (prev + 25, 1) to (start + 2, 2)
7+
- Code(Zero) at (prev + 25, 1) to (start + 2, 2)
88

99
Function name: inline_dead::live::<false>
1010
Raw bytes (28): 0x[01, 01, 02, 01, 05, 05, 02, 04, 01, 10, 01, 01, 09, 00, 02, 09, 00, 0f, 02, 02, 09, 00, 0a, 07, 02, 01, 00, 02]
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Function name: issue_93054::foo2 (unused)
2-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 16, 01, 00, 1d]
2+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 16, 01, 00, 1d]
33
Number of files: 1
44
- file 0 => global file 1
55
Number of expressions: 0
66
Number of file 0 mappings: 1
7-
- Code(Counter(0)) at (prev + 22, 1) to (start + 0, 29)
7+
- Code(Zero) at (prev + 22, 1) to (start + 0, 29)
88

99
Function name: issue_93054::main
1010
Raw bytes (9): 0x[01, 01, 00, 01, 01, 1e, 01, 00, 0d]
@@ -15,10 +15,10 @@ Number of file 0 mappings: 1
1515
- Code(Counter(0)) at (prev + 30, 1) to (start + 0, 13)
1616

1717
Function name: issue_93054::make (unused)
18-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 1a, 01, 02, 02]
18+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 1a, 01, 02, 02]
1919
Number of files: 1
2020
- file 0 => global file 1
2121
Number of expressions: 0
2222
Number of file 0 mappings: 1
23-
- Code(Counter(0)) at (prev + 26, 1) to (start + 2, 2)
23+
- Code(Zero) at (prev + 26, 1) to (start + 2, 2)
2424

tests/coverage-map/status-quo/no_cov_crate.cov-map

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ Number of file 0 mappings: 1
1515
- Code(Counter(0)) at (prev + 24, 1) to (start + 2, 2)
1616

1717
Function name: no_cov_crate::add_coverage_not_called (unused)
18-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 1d, 01, 02, 02]
18+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 1d, 01, 02, 02]
1919
Number of files: 1
2020
- file 0 => global file 1
2121
Number of expressions: 0
2222
Number of file 0 mappings: 1
23-
- Code(Counter(0)) at (prev + 29, 1) to (start + 2, 2)
23+
- Code(Zero) at (prev + 29, 1) to (start + 2, 2)
2424

2525
Function name: no_cov_crate::main
2626
Raw bytes (9): 0x[01, 01, 00, 01, 01, 4d, 01, 0b, 02]

tests/coverage-map/status-quo/partial_eq.cov-map

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
Function name: <partial_eq::Version as core::clone::Clone>::clone (unused)
2-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 04, 0a, 00, 0f]
2+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 04, 0a, 00, 0f]
33
Number of files: 1
44
- file 0 => global file 1
55
Number of expressions: 0
66
Number of file 0 mappings: 1
7-
- Code(Counter(0)) at (prev + 4, 10) to (start + 0, 15)
7+
- Code(Zero) at (prev + 4, 10) to (start + 0, 15)
88

99
Function name: <partial_eq::Version as core::cmp::Ord>::cmp (unused)
10-
Raw bytes (14): 0x[01, 01, 00, 02, 01, 04, 33, 00, 34, 00, 00, 35, 00, 36]
10+
Raw bytes (14): 0x[01, 01, 00, 02, 00, 04, 33, 00, 34, 00, 00, 35, 00, 36]
1111
Number of files: 1
1212
- file 0 => global file 1
1313
Number of expressions: 0
1414
Number of file 0 mappings: 2
15-
- Code(Counter(0)) at (prev + 4, 51) to (start + 0, 52)
15+
- Code(Zero) at (prev + 4, 51) to (start + 0, 52)
1616
- Code(Zero) at (prev + 0, 53) to (start + 0, 54)
1717

1818
Function name: <partial_eq::Version as core::cmp::PartialEq>::eq (unused)
19-
Raw bytes (14): 0x[01, 01, 00, 02, 01, 04, 18, 00, 19, 00, 00, 20, 00, 21]
19+
Raw bytes (14): 0x[01, 01, 00, 02, 00, 04, 18, 00, 19, 00, 00, 20, 00, 21]
2020
Number of files: 1
2121
- file 0 => global file 1
2222
Number of expressions: 0
2323
Number of file 0 mappings: 2
24-
- Code(Counter(0)) at (prev + 4, 24) to (start + 0, 25)
24+
- Code(Zero) at (prev + 4, 24) to (start + 0, 25)
2525
- Code(Zero) at (prev + 0, 32) to (start + 0, 33)
2626

2727
Function name: <partial_eq::Version as core::cmp::PartialOrd>::partial_cmp

tests/coverage-map/status-quo/test_harness.cov-map

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Number of file 0 mappings: 1
1515
- Code(Counter(0)) at (prev + 9, 1) to (start + 0, 8)
1616

1717
Function name: test_harness::unused (unused)
18-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 07, 01, 00, 0f]
18+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 07, 01, 00, 0f]
1919
Number of files: 1
2020
- file 0 => global file 1
2121
Number of expressions: 0
2222
Number of file 0 mappings: 1
23-
- Code(Counter(0)) at (prev + 7, 1) to (start + 0, 15)
23+
- Code(Zero) at (prev + 7, 1) to (start + 0, 15)
2424

0 commit comments

Comments
 (0)