Skip to content

Commit 4889f15

Browse files
authored
Add @_preInverseGenerics to Attachment: CustomStringConvertible. (#1378)
To avoid a crash in Xcode 26, we need `Attachment`'s conformance to `CustomStringConvertible` to not take `~Copyable` into account. Yay. ### 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 6d7b81e commit 4889f15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/Testing/Attachments/Attachment.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ public struct AnyAttachable: AttachableWrapper, Sendable, Copyable {
193193

194194
// MARK: - Describing an attachment
195195

196+
@_preInverseGenerics
196197
extension Attachment: CustomStringConvertible where AttachableValue: ~Copyable {
197198
/// @Metadata {
198199
/// @Available(Swift, introduced: 6.2)

0 commit comments

Comments
 (0)