From e2e98f8516a45e695f37d41ba614ecd41b6228e6 Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Fri, 24 Oct 2025 10:29:35 -0400 Subject: [PATCH] Add `@_preInverseGenerics` to `Attachment: CustomStringConvertible`. To avoid a crash in Xcode 26, we need `Attachment`'s conformance to `CustomStringConvertible` to not take `~Copyable` into account. Yay. --- Sources/Testing/Attachments/Attachment.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Testing/Attachments/Attachment.swift b/Sources/Testing/Attachments/Attachment.swift index 1313b0d41..b22911919 100644 --- a/Sources/Testing/Attachments/Attachment.swift +++ b/Sources/Testing/Attachments/Attachment.swift @@ -193,6 +193,7 @@ public struct AnyAttachable: AttachableWrapper, Sendable, Copyable { // MARK: - Describing an attachment +@_preInverseGenerics extension Attachment: CustomStringConvertible where AttachableValue: ~Copyable { /// @Metadata { /// @Available(Swift, introduced: 6.2)