Commit 6783a1a
authored
When using WASI without multithreading, or when using a platform to
which Swift Testing has been incompletely ported, we don't know what
type to use as a lock/mutex, so we use `Void`. However, turns out that
produces a diagnostic:
> warning: UnsafeMutablePointer<Void> has been replaced by
UnsafeMutableRawPointer
So use `Never` instead. (Yes, this will produce a pointer to an
uninitialized instance of `Never`. If this affects you, please read
Porting.md!)
### 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.
1 parent aee0821 commit 6783a1a
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments