Commit 9342542
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.
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.
---------
Co-authored-by: Stuart Montgomery <smontgomery@apple.com>DiscoverableAsTestContent.Context. (#1076)1 parent d75d0e3 commit 9342542
File tree
5 files changed
+51
-49
lines changed- Documentation/ABI
- Sources
- Testing
- ExitTests
- _TestDiscovery
- Tests/TestingTests
5 files changed
+51
-49
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 | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
77 | | - | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
282 | 289 | | |
283 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
284 | 309 | | |
285 | 310 | | |
286 | 311 | | |
| |||
305 | 330 | | |
306 | 331 | | |
307 | 332 | | |
308 | | - | |
309 | | - | |
310 | | - | |
| 333 | + | |
311 | 334 | | |
312 | 335 | | |
313 | 336 | | |
| |||
320 | 343 | | |
321 | 344 | | |
322 | 345 | | |
323 | | - | |
| 346 | + | |
324 | 347 | | |
325 | 348 | | |
326 | 349 | | |
327 | 350 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
332 | 355 | | |
333 | 356 | | |
334 | 357 | | |
| |||
343 | 366 | | |
344 | 367 | | |
345 | 368 | | |
346 | | - | |
347 | | - | |
| 369 | + | |
| 370 | + | |
348 | 371 | | |
349 | 372 | | |
350 | 373 | | |
351 | 374 | | |
352 | 375 | | |
353 | 376 | | |
354 | | - | |
355 | | - | |
| 377 | + | |
| 378 | + | |
356 | 379 | | |
357 | 380 | | |
358 | 381 | | |
| |||
| 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