From 1bced00e1c082d65d8a707ad0205bf2bfbf3cd91 Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Thu, 29 Jan 2026 12:08:01 -0800 Subject: [PATCH] Sigh, disable `withTemporaryOutputSpan` on 6.2 The RigidDeque effort will land a polyfill for temporary allocations to let us use this on 6.2. --- Sources/ContainersPreview/OutputSpan+Extras.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/ContainersPreview/OutputSpan+Extras.swift b/Sources/ContainersPreview/OutputSpan+Extras.swift index 8499d6be..01d959cf 100644 --- a/Sources/ContainersPreview/OutputSpan+Extras.swift +++ b/Sources/ContainersPreview/OutputSpan+Extras.swift @@ -9,12 +9,11 @@ // //===----------------------------------------------------------------------===// -#if compiler(>=6.2) - #if !COLLECTIONS_SINGLE_MODULE import InternalCollectionsUtilities #endif +#if compiler(>=6.3) @available(SwiftStdlib 5.0, *) @_alwaysEmitIntoClient package func withTemporaryOutputSpan( @@ -29,7 +28,9 @@ package func withTemporaryOutputSpan return try body(&span) } } +#endif +#if compiler(>=6.2) @available(SwiftStdlib 5.0, *) extension OutputSpan where Element: ~Copyable { /// Removes and returns the last element of this output span, if it exists.