diff --git a/Sources/ArrayModule/DynamicArray+Experimental.swift b/Sources/ArrayModule/DynamicArray+Experimental.swift index 7598aa0d..bfcb107a 100644 --- a/Sources/ArrayModule/DynamicArray+Experimental.swift +++ b/Sources/ArrayModule/DynamicArray+Experimental.swift @@ -9,14 +9,14 @@ // //===----------------------------------------------------------------------===// + #if !COLLECTIONS_SINGLE_MODULE import InternalCollectionsUtilities -#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW import ContainersPreview #endif -#endif -#if compiler(>=6.2) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW +#if compiler(>=6.2) && (compiler(>=6.3) || !os(Windows)) // FIXME: [2025-08-17] Windows has no 6.2 snapshot with OutputSpan +#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW #if FIXME extension DynamicArray /*where Element: Copyable*/ { @@ -362,3 +362,4 @@ extension DynamicArray { #endif #endif +#endif diff --git a/Sources/ArrayModule/DynamicArray.swift b/Sources/ArrayModule/DynamicArray.swift index 549b7703..9ca9e324 100644 --- a/Sources/ArrayModule/DynamicArray.swift +++ b/Sources/ArrayModule/DynamicArray.swift @@ -13,7 +13,8 @@ import InternalCollectionsUtilities #endif -#if compiler(<6.2) +#if compiler(<6.2) || (compiler(<6.3) && os(Windows)) // FIXME: [2025-08-17] Windows has no 6.2 snapshot with OutputSpan + /// A dynamically self-resizing, heap allocated, noncopyable array /// of potentially noncopyable elements. @frozen diff --git a/Sources/ArrayModule/RigidArray+Experimental.swift b/Sources/ArrayModule/RigidArray+Experimental.swift index 3ea4604a..42d0b174 100644 --- a/Sources/ArrayModule/RigidArray+Experimental.swift +++ b/Sources/ArrayModule/RigidArray+Experimental.swift @@ -11,12 +11,11 @@ #if !COLLECTIONS_SINGLE_MODULE import InternalCollectionsUtilities -#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW import ContainersPreview #endif -#endif -#if compiler(>=6.2) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW +#if compiler(>=6.2) && (compiler(>=6.3) || !os(Windows)) // FIXME: [2025-08-17] Windows has no 6.2 snapshot with OutputSpan +#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW extension RigidArray /*where Element: Copyable*/ { #if FIXME @@ -168,7 +167,7 @@ extension RigidArray where Element: ~Copyable { count = 0 } } - + @available(SwiftStdlib 5.0, *) @_alwaysEmitIntoClient public mutating func append( @@ -249,7 +248,7 @@ extension RigidArray where Element: ~Copyable { count = 0 } } - + @available(SwiftStdlib 5.0, *) @_alwaysEmitIntoClient public mutating func insert( @@ -453,3 +452,4 @@ extension RigidArray { } #endif +#endif diff --git a/Sources/ArrayModule/RigidArray.swift b/Sources/ArrayModule/RigidArray.swift index 4282367b..eba314a0 100644 --- a/Sources/ArrayModule/RigidArray.swift +++ b/Sources/ArrayModule/RigidArray.swift @@ -13,8 +13,8 @@ import InternalCollectionsUtilities #endif +#if compiler(<6.2) || (compiler(<6.3) && os(Windows)) // FIXME: [2025-08-17] Windows has no 6.2 snapshot with OutputSpan -#if compiler(<6.2) /// A fixed capacity, heap allocated, noncopyable array of potentially /// noncopyable elements. @frozen diff --git a/Tests/ArrayTests/ArrayLayout.swift b/Tests/ArrayTests/ArrayLayout.swift index 49c98240..56ab2c31 100644 --- a/Tests/ArrayTests/ArrayLayout.swift +++ b/Tests/ArrayTests/ArrayLayout.swift @@ -66,7 +66,7 @@ func withSomeArrayLayouts( } } -#if compiler(>=6.2) +#if compiler(>=6.2) && (compiler(>=6.3) || !os(Windows)) // FIXME: [2025-08-17] Windows has no 6.2 snapshot with OutputSpan extension RigidArray where Element: ~Copyable { init(layout: ArrayLayout, using generator: (Int) -> Element) { self.init(capacity: layout.capacity) { span in diff --git a/Tests/ArrayTests/DynamicArrayTests.swift b/Tests/ArrayTests/DynamicArrayTests.swift index d35d6227..587f3e9b 100644 --- a/Tests/ArrayTests/DynamicArrayTests.swift +++ b/Tests/ArrayTests/DynamicArrayTests.swift @@ -9,12 +9,15 @@ // //===----------------------------------------------------------------------===// -#if compiler(>=6.2) && FIXME import XCTest +#if COLLECTIONS_SINGLE_MODULE +import Collections +#else import _CollectionsTestSupport import ArrayModule -//import Synchronization +#endif +#if compiler(>=6.2) && (compiler(>=6.3) || !os(Windows)) // FIXME: [2025-08-17] Windows has no 6.2 snapshot with OutputSpan @available(SwiftStdlib 6.2, *) class DynamicArrayTests: CollectionTestCase { func test_validate_Container() { diff --git a/Tests/ArrayTests/RigidArrayTests.swift b/Tests/ArrayTests/RigidArrayTests.swift index b6f45152..ae6a3abe 100644 --- a/Tests/ArrayTests/RigidArrayTests.swift +++ b/Tests/ArrayTests/RigidArrayTests.swift @@ -17,7 +17,7 @@ import _CollectionsTestSupport import ArrayModule #endif -#if compiler(>=6.2) +#if compiler(>=6.2) && (compiler(>=6.3) || !os(Windows)) // FIXME: [2025-08-17] Windows has no 6.2 snapshot with OutputSpan #if !COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW /// Check if `left` and `right` contain equal elements in the same order. @@ -76,7 +76,7 @@ class RigidArrayTests: CollectionTestCase { } } } - + func test_empty() { let a = RigidArray() expectEqual(a.capacity, 0) @@ -655,7 +655,7 @@ class RigidArrayTests: CollectionTestCase { } } #endif - + func test_insert_at() { withSomeArrayLayouts("layout", ofCapacities: [0, 10, 100]) { layout in guard layout.count < layout.capacity else { return }