From 09577a31eef03c39a5b8ca2bc0bf9461985c8697 Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Mon, 20 Mar 2023 16:40:08 -0700 Subject: [PATCH] =?UTF-8?q?RopeModule=E2=86=92=5FRopeModule.=20Stop=20reex?= =?UTF-8?q?porting=20it=20from=20Collections.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This module is not source stable; mark it as such by prepending the module name with an underscore. --- Package.swift | 9 +++++---- Sources/Collections/Collections.swift | 4 +--- Tests/RopeModuleTests/TestBString.swift | 2 +- Tests/RopeModuleTests/TestBString2.swift | 2 +- Tests/RopeModuleTests/TestBigString.swift | 2 +- Tests/RopeModuleTests/TestRope.swift | 2 +- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Package.swift b/Package.swift index d3cfbf7c..13d3f242 100644 --- a/Package.swift +++ b/Package.swift @@ -163,15 +163,16 @@ registerLibrary( swiftSettings: _settings) ) -registerUnstableLibrary( - "RopeModule", +registerLibrary( + "_RopeModule", .target( - name: "RopeModule", + name: "_RopeModule", dependencies: ["_CollectionsUtilities"], + path: "Sources/RopeModule", swiftSettings: _settings), .testTarget( name: "RopeModuleTests", - dependencies: ["RopeModule", "_CollectionsTestSupport"], + dependencies: ["_RopeModule", "_CollectionsTestSupport"], swiftSettings: _settings) ) diff --git a/Sources/Collections/Collections.swift b/Sources/Collections/Collections.swift index 2b94ab98..b500a766 100644 --- a/Sources/Collections/Collections.swift +++ b/Sources/Collections/Collections.swift @@ -15,6 +15,4 @@ @_exported import HeapModule @_exported import OrderedCollections -#if COLLECTIONS_ENABLE_UNSTABLE_MODULES -@_exported import RopeModule -#endif +//@_exported import _RopeModule diff --git a/Tests/RopeModuleTests/TestBString.swift b/Tests/RopeModuleTests/TestBString.swift index 63c2827f..408e53c8 100644 --- a/Tests/RopeModuleTests/TestBString.swift +++ b/Tests/RopeModuleTests/TestBString.swift @@ -10,7 +10,7 @@ //===----------------------------------------------------------------------===// #if swift(>=5.8) && DEBUG -@testable import RopeModule +@testable import _RopeModule import XCTest @available(macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4, *) diff --git a/Tests/RopeModuleTests/TestBString2.swift b/Tests/RopeModuleTests/TestBString2.swift index 81c2736f..3ea05308 100644 --- a/Tests/RopeModuleTests/TestBString2.swift +++ b/Tests/RopeModuleTests/TestBString2.swift @@ -12,7 +12,7 @@ #if swift(>=5.8) && DEBUG import _CollectionsTestSupport import XCTest -@testable import RopeModule +@testable import _RopeModule @available(macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4, *) class TestBString2: CollectionTestCase { diff --git a/Tests/RopeModuleTests/TestBigString.swift b/Tests/RopeModuleTests/TestBigString.swift index e63554a4..8549c3e7 100644 --- a/Tests/RopeModuleTests/TestBigString.swift +++ b/Tests/RopeModuleTests/TestBigString.swift @@ -10,7 +10,7 @@ //===----------------------------------------------------------------------===// #if swift(>=5.8) -import RopeModule +import _RopeModule import XCTest @available(macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4, *) diff --git a/Tests/RopeModuleTests/TestRope.swift b/Tests/RopeModuleTests/TestRope.swift index 326f423c..11158ed9 100644 --- a/Tests/RopeModuleTests/TestRope.swift +++ b/Tests/RopeModuleTests/TestRope.swift @@ -10,7 +10,7 @@ //===----------------------------------------------------------------------===// #if DEBUG -@testable import RopeModule +@testable import _RopeModule import XCTest struct Chunk: _RopeElement, Equatable, CustomStringConvertible {