Commit 04c8058
committed
Relax the alignment requirement for
This PR allows `DiscoverableAsTestContent.Context` to be less-aligned than
`UInt` so long as its stride remains the same. It also removes the sneaky
conformance of `ExitTest` to `DiscoverableAsTestContent`, opting instead to use
an internal type. Since the conformance to `DiscoverableAsTestContent` and the
implementation of `__store()` form a closed system (where all type information
is controlled by Swift Testing at runtime), we can do this without breaking any
ABI. I've updated ABI/TestContent.md to remove some of the relevant
implementation details.DiscoverableAsTestContent.Context.1 parent 55f82ed commit 04c8058
File tree
5 files changed
+41
-43
lines changed- Documentation/ABI
- Sources
- Testing
- ExitTests
- _TestDiscovery
- Tests/TestingTests
5 files changed
+41
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
171 | 158 | | |
172 | 159 | | |
173 | 160 | | |
| |||
274 | 261 | | |
275 | 262 | | |
276 | 263 | | |
277 | | - | |
| 264 | + | |
| 265 | + | |
278 | 266 | | |
279 | 267 | | |
280 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 11 | | |
21 | 12 | | |
22 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
265 | 275 | | |
266 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
267 | 288 | | |
268 | 289 | | |
269 | 290 | | |
| |||
287 | 308 | | |
288 | 309 | | |
289 | 310 | | |
290 | | - | |
291 | | - | |
292 | | - | |
| 311 | + | |
293 | 312 | | |
294 | 313 | | |
295 | 314 | | |
296 | 315 | | |
297 | 316 | | |
298 | 317 | | |
299 | 318 | | |
300 | | - | |
| 319 | + | |
301 | 320 | | |
302 | 321 | | |
303 | 322 | | |
| |||
312 | 331 | | |
313 | 332 | | |
314 | 333 | | |
315 | | - | |
316 | | - | |
| 334 | + | |
| 335 | + | |
317 | 336 | | |
318 | 337 | | |
319 | 338 | | |
320 | 339 | | |
321 | 340 | | |
322 | 341 | | |
323 | | - | |
324 | | - | |
| 342 | + | |
| 343 | + | |
325 | 344 | | |
326 | 345 | | |
327 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments