Skip to content

Commit e8678b1

Browse files
authored
Rollup merge of rust-lang#120015 - Zalathar:format, r=dtolnay
coverage: Format all coverage tests with `rustfmt` As suggested by <rust-lang#119984 (comment)>. Test files in `tests/` are normally ignored by `x fmt`, but sometimes those files end up being run through `rustfmt` anyway, either by `rust-analyzer` or by hand. When that happens, it's annoying to have to manually revert formatting changes that are unrelated to the actual changes being made. So it's helpful for the tests in the repository to already have standard formatting beforehand. However, there are several coverage tests that deliberately use non-standard formatting, so that line counts reveal more information about where code regions begin and end. In those cases, we can use `#[rustfmt::skip]` to prevent that code from being disturbed. ``@rustbot`` label +A-code-coverage
2 parents a1b41a9 + 99797bb commit e8678b1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+282
-218
lines changed

tests/coverage/abort.cov-map

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Function name: abort::main
2-
Raw bytes (105): 0x[01, 01, 12, 01, 47, 05, 09, 03, 0d, 42, 11, 03, 0d, 11, 3e, 42, 11, 03, 0d, 3b, 15, 11, 3e, 42, 11, 03, 0d, 15, 36, 3b, 15, 11, 3e, 42, 11, 03, 0d, 05, 09, 0d, 01, 0d, 01, 01, 1b, 03, 02, 0b, 00, 18, 42, 01, 0c, 00, 19, 11, 00, 1a, 02, 0a, 3e, 02, 0a, 00, 0b, 3b, 02, 0c, 00, 19, 15, 00, 1a, 00, 31, 36, 00, 31, 00, 32, 33, 04, 0c, 00, 19, 05, 00, 1a, 00, 31, 09, 00, 31, 00, 32, 47, 01, 09, 00, 17, 0d, 02, 05, 01, 02]
2+
Raw bytes (105): 0x[01, 01, 12, 01, 47, 05, 09, 03, 0d, 42, 11, 03, 0d, 11, 3e, 42, 11, 03, 0d, 3b, 15, 11, 3e, 42, 11, 03, 0d, 15, 36, 3b, 15, 11, 3e, 42, 11, 03, 0d, 05, 09, 0d, 01, 0e, 01, 01, 1b, 03, 02, 0b, 00, 18, 42, 01, 0c, 00, 19, 11, 00, 1a, 02, 0a, 3e, 02, 0a, 00, 0b, 3b, 02, 0c, 00, 19, 15, 00, 1a, 00, 31, 36, 00, 31, 00, 32, 33, 04, 0c, 00, 19, 05, 00, 1a, 00, 31, 09, 00, 31, 00, 32, 47, 01, 09, 00, 17, 0d, 02, 05, 01, 02]
33
Number of files: 1
44
- file 0 => global file 1
55
Number of expressions: 18
@@ -22,7 +22,7 @@ Number of expressions: 18
2222
- expression 16 operands: lhs = Expression(0, Add), rhs = Counter(3)
2323
- expression 17 operands: lhs = Counter(1), rhs = Counter(2)
2424
Number of file 0 mappings: 13
25-
- Code(Counter(0)) at (prev + 13, 1) to (start + 1, 27)
25+
- Code(Counter(0)) at (prev + 14, 1) to (start + 1, 27)
2626
- Code(Expression(0, Add)) at (prev + 2, 11) to (start + 0, 24)
2727
= (c0 + (c1 + c2))
2828
- Code(Expression(16, Sub)) at (prev + 1, 12) to (start + 0, 25)

tests/coverage/abort.coverage

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
LL| 12| }
1111
LL| 12|}
1212
LL| |
13+
LL| |#[rustfmt::skip]
1314
LL| 1|fn main() -> Result<(), u8> {
1415
LL| 1| let mut countdown = 10;
1516
LL| 11| while countdown > 0 {

tests/coverage/abort.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ extern "C" fn might_abort(should_abort: bool) {
1010
}
1111
}
1212

13+
#[rustfmt::skip]
1314
fn main() -> Result<(), u8> {
1415
let mut countdown = 10;
1516
while countdown > 0 {

tests/coverage/async.cov-map

+50-50
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,105 @@
11
Function name: async::c
2-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 07, 01, 00, 19]
2+
Raw bytes (9): 0x[01, 01, 00, 01, 01, 09, 01, 00, 19]
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 + 7, 1) to (start + 0, 25)
7+
- Code(Counter(0)) at (prev + 9, 1) to (start + 0, 25)
88

99
Function name: async::c::{closure#0}
10-
Raw bytes (28): 0x[01, 01, 02, 01, 05, 05, 02, 04, 01, 07, 19, 01, 0e, 05, 02, 09, 00, 0a, 02, 02, 09, 00, 0a, 07, 02, 01, 00, 02]
10+
Raw bytes (28): 0x[01, 01, 02, 01, 05, 05, 02, 04, 01, 09, 19, 01, 0e, 05, 02, 09, 00, 0a, 02, 02, 09, 00, 0a, 07, 02, 01, 00, 02]
1111
Number of files: 1
1212
- file 0 => global file 1
1313
Number of expressions: 2
1414
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
1515
- expression 1 operands: lhs = Counter(1), rhs = Expression(0, Sub)
1616
Number of file 0 mappings: 4
17-
- Code(Counter(0)) at (prev + 7, 25) to (start + 1, 14)
17+
- Code(Counter(0)) at (prev + 9, 25) to (start + 1, 14)
1818
- Code(Counter(1)) at (prev + 2, 9) to (start + 0, 10)
1919
- Code(Expression(0, Sub)) at (prev + 2, 9) to (start + 0, 10)
2020
= (c0 - c1)
2121
- Code(Expression(1, Add)) at (prev + 2, 1) to (start + 0, 2)
2222
= (c1 + (c0 - c1))
2323

2424
Function name: async::d
25-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 0f, 01, 00, 14]
25+
Raw bytes (9): 0x[01, 01, 00, 01, 01, 11, 01, 00, 14]
2626
Number of files: 1
2727
- file 0 => global file 1
2828
Number of expressions: 0
2929
Number of file 0 mappings: 1
30-
- Code(Counter(0)) at (prev + 15, 1) to (start + 0, 20)
30+
- Code(Counter(0)) at (prev + 17, 1) to (start + 0, 20)
3131

3232
Function name: async::d::{closure#0}
33-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 0f, 14, 00, 19]
33+
Raw bytes (9): 0x[01, 01, 00, 01, 01, 11, 14, 00, 19]
3434
Number of files: 1
3535
- file 0 => global file 1
3636
Number of expressions: 0
3737
Number of file 0 mappings: 1
38-
- Code(Counter(0)) at (prev + 15, 20) to (start + 0, 25)
38+
- Code(Counter(0)) at (prev + 17, 20) to (start + 0, 25)
3939

4040
Function name: async::e (unused)
41-
Raw bytes (9): 0x[01, 01, 00, 01, 00, 11, 01, 00, 14]
41+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 13, 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(Zero) at (prev + 17, 1) to (start + 0, 20)
46+
- Code(Zero) at (prev + 19, 1) to (start + 0, 20)
4747

4848
Function name: async::e::{closure#0} (unused)
49-
Raw bytes (9): 0x[01, 01, 00, 01, 00, 11, 14, 00, 19]
49+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 13, 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(Zero) at (prev + 17, 20) to (start + 0, 25)
54+
- Code(Zero) at (prev + 19, 20) to (start + 0, 25)
5555

5656
Function name: async::f
57-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 13, 01, 00, 14]
57+
Raw bytes (9): 0x[01, 01, 00, 01, 01, 15, 01, 00, 14]
5858
Number of files: 1
5959
- file 0 => global file 1
6060
Number of expressions: 0
6161
Number of file 0 mappings: 1
62-
- Code(Counter(0)) at (prev + 19, 1) to (start + 0, 20)
62+
- Code(Counter(0)) at (prev + 21, 1) to (start + 0, 20)
6363

6464
Function name: async::f::{closure#0}
65-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 13, 14, 00, 19]
65+
Raw bytes (9): 0x[01, 01, 00, 01, 01, 15, 14, 00, 19]
6666
Number of files: 1
6767
- file 0 => global file 1
6868
Number of expressions: 0
6969
Number of file 0 mappings: 1
70-
- Code(Counter(0)) at (prev + 19, 20) to (start + 0, 25)
70+
- Code(Counter(0)) at (prev + 21, 20) to (start + 0, 25)
7171

7272
Function name: async::foo (unused)
73-
Raw bytes (9): 0x[01, 01, 00, 01, 00, 15, 01, 00, 1e]
73+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 17, 01, 00, 1e]
7474
Number of files: 1
7575
- file 0 => global file 1
7676
Number of expressions: 0
7777
Number of file 0 mappings: 1
78-
- Code(Zero) at (prev + 21, 1) to (start + 0, 30)
78+
- Code(Zero) at (prev + 23, 1) to (start + 0, 30)
7979

8080
Function name: async::foo::{closure#0} (unused)
81-
Raw bytes (9): 0x[01, 01, 00, 01, 00, 15, 1e, 00, 2d]
81+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 17, 1e, 00, 2d]
8282
Number of files: 1
8383
- file 0 => global file 1
8484
Number of expressions: 0
8585
Number of file 0 mappings: 1
86-
- Code(Zero) at (prev + 21, 30) to (start + 0, 45)
86+
- Code(Zero) at (prev + 23, 30) to (start + 0, 45)
8787

8888
Function name: async::g
89-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 17, 01, 00, 17]
89+
Raw bytes (9): 0x[01, 01, 00, 01, 01, 19, 01, 00, 17]
9090
Number of files: 1
9191
- file 0 => global file 1
9292
Number of expressions: 0
9393
Number of file 0 mappings: 1
94-
- Code(Counter(0)) at (prev + 23, 1) to (start + 0, 23)
94+
- Code(Counter(0)) at (prev + 25, 1) to (start + 0, 23)
9595

9696
Function name: async::g::{closure#0} (unused)
97-
Raw bytes (69): 0x[01, 01, 00, 0d, 00, 17, 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]
97+
Raw bytes (69): 0x[01, 01, 00, 0d, 00, 19, 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]
9898
Number of files: 1
9999
- file 0 => global file 1
100100
Number of expressions: 0
101101
Number of file 0 mappings: 13
102-
- Code(Zero) at (prev + 23, 23) to (start + 1, 12)
102+
- Code(Zero) at (prev + 25, 23) to (start + 1, 12)
103103
- Code(Zero) at (prev + 2, 9) to (start + 0, 10)
104104
- Code(Zero) at (prev + 0, 14) to (start + 0, 17)
105105
- Code(Zero) at (prev + 0, 18) to (start + 0, 23)
@@ -114,20 +114,20 @@ Number of file 0 mappings: 13
114114
- Code(Zero) at (prev + 2, 1) to (start + 0, 2)
115115

116116
Function name: async::h
117-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 1f, 01, 00, 16]
117+
Raw bytes (9): 0x[01, 01, 00, 01, 01, 21, 01, 00, 16]
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 + 31, 1) to (start + 0, 22)
122+
- Code(Counter(0)) at (prev + 33, 1) to (start + 0, 22)
123123

124124
Function name: async::h::{closure#0} (unused)
125-
Raw bytes (44): 0x[01, 01, 00, 08, 00, 1f, 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]
125+
Raw bytes (44): 0x[01, 01, 00, 08, 00, 21, 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]
126126
Number of files: 1
127127
- file 0 => global file 1
128128
Number of expressions: 0
129129
Number of file 0 mappings: 8
130-
- Code(Zero) at (prev + 31, 22) to (start + 3, 12)
130+
- Code(Zero) at (prev + 33, 22) to (start + 3, 12)
131131
- Code(Zero) at (prev + 4, 9) to (start + 0, 10)
132132
- Code(Zero) at (prev + 0, 14) to (start + 0, 19)
133133
- Code(Zero) at (prev + 0, 20) to (start + 0, 25)
@@ -137,22 +137,22 @@ Number of file 0 mappings: 8
137137
- Code(Zero) at (prev + 2, 1) to (start + 0, 2)
138138

139139
Function name: async::i
140-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 28, 01, 00, 13]
140+
Raw bytes (9): 0x[01, 01, 00, 01, 01, 2a, 01, 00, 13]
141141
Number of files: 1
142142
- file 0 => global file 1
143143
Number of expressions: 0
144144
Number of file 0 mappings: 1
145-
- Code(Counter(0)) at (prev + 40, 1) to (start + 0, 19)
145+
- Code(Counter(0)) at (prev + 42, 1) to (start + 0, 19)
146146

147147
Function name: async::i::{closure#0}
148-
Raw bytes (78): 0x[01, 01, 02, 07, 21, 19, 1d, 0e, 01, 28, 13, 04, 0c, 0d, 05, 09, 00, 0a, 01, 00, 0e, 00, 12, 05, 00, 13, 00, 18, 09, 00, 1c, 00, 21, 0d, 00, 27, 00, 2a, 15, 00, 2b, 00, 30, 1d, 01, 09, 00, 0a, 11, 00, 0e, 00, 11, 25, 00, 12, 00, 17, 29, 00, 1b, 00, 20, 1d, 00, 24, 00, 26, 21, 01, 0e, 00, 10, 03, 02, 01, 00, 02]
148+
Raw bytes (78): 0x[01, 01, 02, 07, 21, 19, 1d, 0e, 01, 2a, 13, 04, 0c, 0d, 05, 09, 00, 0a, 01, 00, 0e, 00, 12, 05, 00, 13, 00, 18, 09, 00, 1c, 00, 21, 0d, 00, 27, 00, 2a, 15, 00, 2b, 00, 30, 1d, 01, 09, 00, 0a, 11, 00, 0e, 00, 11, 25, 00, 12, 00, 17, 29, 00, 1b, 00, 20, 1d, 00, 24, 00, 26, 21, 01, 0e, 00, 10, 03, 02, 01, 00, 02]
149149
Number of files: 1
150150
- file 0 => global file 1
151151
Number of expressions: 2
152152
- expression 0 operands: lhs = Expression(1, Add), rhs = Counter(8)
153153
- expression 1 operands: lhs = Counter(6), rhs = Counter(7)
154154
Number of file 0 mappings: 14
155-
- Code(Counter(0)) at (prev + 40, 19) to (start + 4, 12)
155+
- Code(Counter(0)) at (prev + 42, 19) to (start + 4, 12)
156156
- Code(Counter(3)) at (prev + 5, 9) to (start + 0, 10)
157157
- Code(Counter(0)) at (prev + 0, 14) to (start + 0, 18)
158158
- Code(Counter(1)) at (prev + 0, 19) to (start + 0, 24)
@@ -169,14 +169,14 @@ Number of file 0 mappings: 14
169169
= ((c6 + c7) + c8)
170170

171171
Function name: async::j
172-
Raw bytes (53): 0x[01, 01, 02, 07, 0d, 05, 09, 09, 01, 33, 01, 13, 0c, 05, 14, 09, 00, 0a, 01, 00, 0e, 00, 1b, 05, 00, 1f, 00, 27, 09, 01, 09, 00, 0a, 11, 00, 0e, 00, 1a, 09, 00, 1e, 00, 20, 0d, 01, 0e, 00, 10, 03, 02, 01, 00, 02]
172+
Raw bytes (53): 0x[01, 01, 02, 07, 0d, 05, 09, 09, 01, 35, 01, 13, 0c, 05, 14, 09, 00, 0a, 01, 00, 0e, 00, 1b, 05, 00, 1f, 00, 27, 09, 01, 09, 00, 0a, 11, 00, 0e, 00, 1a, 09, 00, 1e, 00, 20, 0d, 01, 0e, 00, 10, 03, 02, 01, 00, 02]
173173
Number of files: 1
174174
- file 0 => global file 1
175175
Number of expressions: 2
176176
- expression 0 operands: lhs = Expression(1, Add), rhs = Counter(3)
177177
- expression 1 operands: lhs = Counter(1), rhs = Counter(2)
178178
Number of file 0 mappings: 9
179-
- Code(Counter(0)) at (prev + 51, 1) to (start + 19, 12)
179+
- Code(Counter(0)) at (prev + 53, 1) to (start + 19, 12)
180180
- Code(Counter(1)) at (prev + 20, 9) to (start + 0, 10)
181181
- Code(Counter(0)) at (prev + 0, 14) to (start + 0, 27)
182182
- Code(Counter(1)) at (prev + 0, 31) to (start + 0, 39)
@@ -188,50 +188,50 @@ Number of file 0 mappings: 9
188188
= ((c1 + c2) + c3)
189189

190190
Function name: async::j::c
191-
Raw bytes (28): 0x[01, 01, 02, 01, 05, 05, 02, 04, 01, 35, 05, 01, 12, 05, 02, 0d, 00, 0e, 02, 0a, 0d, 00, 0e, 07, 02, 05, 00, 06]
191+
Raw bytes (28): 0x[01, 01, 02, 01, 05, 05, 02, 04, 01, 37, 05, 01, 12, 05, 02, 0d, 00, 0e, 02, 0a, 0d, 00, 0e, 07, 02, 05, 00, 06]
192192
Number of files: 1
193193
- file 0 => global file 1
194194
Number of expressions: 2
195195
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
196196
- expression 1 operands: lhs = Counter(1), rhs = Expression(0, Sub)
197197
Number of file 0 mappings: 4
198-
- Code(Counter(0)) at (prev + 53, 5) to (start + 1, 18)
198+
- Code(Counter(0)) at (prev + 55, 5) to (start + 1, 18)
199199
- Code(Counter(1)) at (prev + 2, 13) to (start + 0, 14)
200200
- Code(Expression(0, Sub)) at (prev + 10, 13) to (start + 0, 14)
201201
= (c0 - c1)
202202
- Code(Expression(1, Add)) at (prev + 2, 5) to (start + 0, 6)
203203
= (c1 + (c0 - c1))
204204

205205
Function name: async::j::d
206-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 44, 05, 00, 17]
206+
Raw bytes (9): 0x[01, 01, 00, 01, 01, 46, 05, 00, 17]
207207
Number of files: 1
208208
- file 0 => global file 1
209209
Number of expressions: 0
210210
Number of file 0 mappings: 1
211-
- Code(Counter(0)) at (prev + 68, 5) to (start + 0, 23)
211+
- Code(Counter(0)) at (prev + 70, 5) to (start + 0, 23)
212212

213213
Function name: async::j::f
214-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 45, 05, 00, 17]
214+
Raw bytes (9): 0x[01, 01, 00, 01, 01, 47, 05, 00, 17]
215215
Number of files: 1
216216
- file 0 => global file 1
217217
Number of expressions: 0
218218
Number of file 0 mappings: 1
219-
- Code(Counter(0)) at (prev + 69, 5) to (start + 0, 23)
219+
- Code(Counter(0)) at (prev + 71, 5) to (start + 0, 23)
220220

221221
Function name: async::k (unused)
222-
Raw bytes (29): 0x[01, 01, 00, 05, 00, 4d, 01, 01, 0c, 00, 02, 0e, 00, 10, 00, 01, 0e, 00, 10, 00, 01, 0e, 00, 10, 00, 02, 01, 00, 02]
222+
Raw bytes (29): 0x[01, 01, 00, 05, 00, 4f, 01, 01, 0c, 00, 02, 0e, 00, 10, 00, 01, 0e, 00, 10, 00, 01, 0e, 00, 10, 00, 02, 01, 00, 02]
223223
Number of files: 1
224224
- file 0 => global file 1
225225
Number of expressions: 0
226226
Number of file 0 mappings: 5
227-
- Code(Zero) at (prev + 77, 1) to (start + 1, 12)
227+
- Code(Zero) at (prev + 79, 1) to (start + 1, 12)
228228
- Code(Zero) at (prev + 2, 14) to (start + 0, 16)
229229
- Code(Zero) at (prev + 1, 14) to (start + 0, 16)
230230
- Code(Zero) at (prev + 1, 14) to (start + 0, 16)
231231
- Code(Zero) at (prev + 2, 1) to (start + 0, 2)
232232

233233
Function name: async::l
234-
Raw bytes (37): 0x[01, 01, 04, 01, 07, 05, 09, 0f, 02, 09, 05, 05, 01, 55, 01, 01, 0c, 02, 02, 0e, 00, 10, 05, 01, 0e, 00, 10, 09, 01, 0e, 00, 10, 0b, 02, 01, 00, 02]
234+
Raw bytes (37): 0x[01, 01, 04, 01, 07, 05, 09, 0f, 02, 09, 05, 05, 01, 57, 01, 01, 0c, 02, 02, 0e, 00, 10, 05, 01, 0e, 00, 10, 09, 01, 0e, 00, 10, 0b, 02, 01, 00, 02]
235235
Number of files: 1
236236
- file 0 => global file 1
237237
Number of expressions: 4
@@ -240,7 +240,7 @@ Number of expressions: 4
240240
- expression 2 operands: lhs = Expression(3, Add), rhs = Expression(0, Sub)
241241
- expression 3 operands: lhs = Counter(2), rhs = Counter(1)
242242
Number of file 0 mappings: 5
243-
- Code(Counter(0)) at (prev + 85, 1) to (start + 1, 12)
243+
- Code(Counter(0)) at (prev + 87, 1) to (start + 1, 12)
244244
- Code(Expression(0, Sub)) at (prev + 2, 14) to (start + 0, 16)
245245
= (c0 - (c1 + c2))
246246
- Code(Counter(1)) at (prev + 1, 14) to (start + 0, 16)
@@ -249,26 +249,26 @@ Number of file 0 mappings: 5
249249
= ((c2 + c1) + (c0 - (c1 + c2)))
250250

251251
Function name: async::m
252-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 5d, 01, 00, 19]
252+
Raw bytes (9): 0x[01, 01, 00, 01, 01, 5f, 01, 00, 19]
253253
Number of files: 1
254254
- file 0 => global file 1
255255
Number of expressions: 0
256256
Number of file 0 mappings: 1
257-
- Code(Counter(0)) at (prev + 93, 1) to (start + 0, 25)
257+
- Code(Counter(0)) at (prev + 95, 1) to (start + 0, 25)
258258

259259
Function name: async::m::{closure#0} (unused)
260-
Raw bytes (9): 0x[01, 01, 00, 01, 00, 5d, 19, 00, 22]
260+
Raw bytes (9): 0x[01, 01, 00, 01, 00, 5f, 19, 00, 22]
261261
Number of files: 1
262262
- file 0 => global file 1
263263
Number of expressions: 0
264264
Number of file 0 mappings: 1
265-
- Code(Zero) at (prev + 93, 25) to (start + 0, 34)
265+
- Code(Zero) at (prev + 95, 25) to (start + 0, 34)
266266

267267
Function name: async::main
268-
Raw bytes (9): 0x[01, 01, 00, 01, 01, 5f, 01, 08, 02]
268+
Raw bytes (9): 0x[01, 01, 00, 01, 01, 61, 01, 08, 02]
269269
Number of files: 1
270270
- file 0 => global file 1
271271
Number of expressions: 0
272272
Number of file 0 mappings: 1
273-
- Code(Counter(0)) at (prev + 95, 1) to (start + 8, 2)
273+
- Code(Counter(0)) at (prev + 97, 1) to (start + 8, 2)
274274

tests/coverage/async.coverage

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
LL| |#![feature(coverage_attribute)]
2+
LL| |#![feature(custom_inner_attributes)] // for #![rustfmt::skip]
23
LL| |#![feature(noop_waker)]
34
LL| |#![allow(unused_assignments, dead_code)]
5+
LL| |#![rustfmt::skip]
46
LL| |// edition: 2018
57
LL| |// compile-flags: -Copt-level=1
68
LL| |

tests/coverage/async.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#![feature(coverage_attribute)]
2+
#![feature(custom_inner_attributes)] // for #![rustfmt::skip]
23
#![feature(noop_waker)]
34
#![allow(unused_assignments, dead_code)]
5+
#![rustfmt::skip]
46
// edition: 2018
57
// compile-flags: -Copt-level=1
68

0 commit comments

Comments
 (0)