Skip to content

Commit 23578e1

Browse files
committed
Work around a compiler crash building Attachment.record().
This PR works around a compiler crash that appeared in CI while building one of the overloads of `Attachment.record()`. Works around `____`.
1 parent 588807a commit 23578e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/Testing/Attachments/Attachment.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ extension Attachment where AttachableValue: Sendable & Copyable {
264264
///
265265
/// An attachment can only be attached once.
266266
@_documentation(visibility: private)
267-
public static func record(_ attachableValue: consuming AttachableValue, named preferredName: String? = nil, sourceLocation: SourceLocation = #_sourceLocation) {
267+
public static func record(_ attachableValue: /*consuming*/ AttachableValue, named preferredName: String? = nil, sourceLocation: SourceLocation = #_sourceLocation) {
268+
// Commented out consuming to work around a compiler bug. SEE: ____
268269
record(Self(attachableValue, named: preferredName), sourceLocation: sourceLocation)
269270
}
270271
}

0 commit comments

Comments
 (0)