Our updated minimum toolchain requirement is Swift 5.7, and the stdlib in that version has the fix included.
We’ve seen reports that the bug may not deploy back in all cases to earlier OS releases, but it still seems worth trying to remove the workaround, as it has some undesirable runtime implications.
- For CustomStringConvertible, `description` should print elements using `String(reflecting:)` rather than `String(describing:)`, to avoid element output from interfering with syntactically relevant punctuation within structured list displays.
- To make this work without making displays overly verbose, make `debugDescription` mostly the same as `description`, except for escaping raw string displays when and if needed.
- Avoid printing type names in `debugDescription` — it is generally not helpful, as the type is already easily accessible elsewhere. Including it makes for overly verbose displays when the type serves as an Element of a collection.
- Avoid having `debugDescription` return the empty string — it can be confusing when such a description appears in list displays.
Resolves#301.
Depending on the supplied sequence, `Deque.append(contentsOf:)` currently reserves just enough capacity as it needs to perform the append. This isn't right -- it can result in O(n) reallocs instead of O(log(n)) when items are incrementally appended in constant-sized `append(contents:)` batches.
* [utils] Add utility for shuffling sources to help reproduce MergeModules issues
* [Deque] Collapse Sequence/Collection conformances into a single file
The MergeModules phase in the compiler is broken: it isn’t always able to correctly handle circular dependencies across source files, like the ones that keep organically popping up with Sequence/Collection conformances that are defined in separate files.
Such dependencies sometimes triggers a compiler crash, depending on some (unknown) environmental parameters.
Trying to manually find and eliminate these circular dependencies has not proved productive. Instead, roll all Collection conformances into a single, huge source file.
* [Deque] Update CMakeLists
* [cmake] Support amd64 architecture name.
On OpenBSD, "x86_64" is called "amd64", and therefore recognition of this
name is required for the cmake build.
* [cmake] Add missing file.
This is required since, for example, `Deque+Extras` requires
`_withContiguousStorageIfAvailable_SR14663`.
* ManagedBuffer.capacity is unavailable on OpenBSD.
ManagedBuffer requires nonstandard API to implement `capacity` and
subsequently is unavailable on OpenBSD. For portability, just use
`minimumCapacity` on this platform.