Sigh, disable withTemporaryOutputSpan on 6.2

The RigidDeque effort will land a polyfill for temporary allocations to let us use this on 6.2.
This commit is contained in:
Karoy Lorentey committed 2026-01-29 12:08:01 -08:00
1 parent e8d53861ae
commit 1bced00e1c
1 file changed
+3 -2
@@ -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<Element: ~Copyable, E: Error, R: ~Copyable>(
@@ -29,7 +28,9 @@ package func withTemporaryOutputSpan<Element: ~Copyable, E: Error, R: ~Copyable>
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.