mirror of
https://github.com/apple/swift-collections
synced 2026-11-29 05:14:20 +00:00
Merge pull request #479 from lorentey/disable-sorted-collections
Disable `SortedCollections` module
This commit is contained in:
15 files changed
+17
-139
No files matched your search
@@ -9,6 +9,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if false // SortedCollections is not a thing yet
|
||||
import CollectionsBenchmark
|
||||
import SortedCollections
|
||||
|
||||
@@ -301,3 +302,4 @@ extension Benchmark {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -9,6 +9,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if false // SortedCollections is not a thing yet
|
||||
import CollectionsBenchmark
|
||||
import SortedCollections
|
||||
|
||||
@@ -205,3 +206,4 @@ extension Benchmark {
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -33,8 +33,10 @@ benchmark.addTreeDictionaryBenchmarks()
|
||||
benchmark.addDequeBenchmarks()
|
||||
benchmark.addOrderedSetBenchmarks()
|
||||
benchmark.addOrderedDictionaryBenchmarks()
|
||||
#if false
|
||||
benchmark.addSortedSetBenchmarks()
|
||||
benchmark.addSortedDictionaryBenchmarks()
|
||||
#endif
|
||||
benchmark.addHeapBenchmarks()
|
||||
benchmark.addBitSetBenchmarks()
|
||||
benchmark.addTreeSetBenchmarks()
|
||||
|
||||
+11
-10
@@ -265,15 +265,16 @@ let targets: [CustomTarget] = [
|
||||
name: "RopeModuleTests",
|
||||
dependencies: ["_RopeModule", "_CollectionsTestSupport"]),
|
||||
|
||||
.target(
|
||||
kind: .exported,
|
||||
name: "SortedCollections",
|
||||
dependencies: ["InternalCollectionsUtilities"],
|
||||
directory: "SortedCollections"),
|
||||
.target(
|
||||
kind: .test,
|
||||
name: "SortedCollectionsTests",
|
||||
dependencies: ["SortedCollections", "_CollectionsTestSupport"]),
|
||||
// These aren't ready for production use yet.
|
||||
// .target(
|
||||
// kind: .exported,
|
||||
// name: "SortedCollections",
|
||||
// dependencies: ["InternalCollectionsUtilities"],
|
||||
// directory: "SortedCollections"),
|
||||
// .target(
|
||||
// kind: .test,
|
||||
// name: "SortedCollectionsTests",
|
||||
// dependencies: ["SortedCollections", "_CollectionsTestSupport"]),
|
||||
|
||||
.target(
|
||||
kind: .exported,
|
||||
@@ -285,7 +286,7 @@ let targets: [CustomTarget] = [
|
||||
"HeapModule",
|
||||
"OrderedCollections",
|
||||
"_RopeModule",
|
||||
"SortedCollections",
|
||||
//"SortedCollections",
|
||||
],
|
||||
exclude: ["CMakeLists.txt"])
|
||||
]
|
||||
|
||||
@@ -23,10 +23,8 @@ extension SortedDictionary {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension SortedDictionary.Keys: Sendable
|
||||
where Key: Sendable, Value: Sendable {}
|
||||
#endif
|
||||
|
||||
extension SortedDictionary.Keys: Sequence {
|
||||
/// The element type of the collection.
|
||||
@@ -57,10 +55,8 @@ extension SortedDictionary.Keys: Sequence {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension SortedDictionary.Keys.Iterator: Sendable
|
||||
where Key: Sendable, Value: Sendable {}
|
||||
#endif
|
||||
|
||||
extension SortedDictionary.Keys: BidirectionalCollection {
|
||||
/// The index type for a dictionary's keys view.
|
||||
|
||||
@@ -9,7 +9,5 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension SortedDictionary: @unchecked Sendable
|
||||
where Key: Sendable, Value: Sendable {}
|
||||
#endif
|
||||
@@ -46,7 +46,5 @@ extension SortedDictionary: Sequence {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension SortedDictionary.Iterator: @unchecked Sendable
|
||||
where Key: Sendable, Value: Sendable {}
|
||||
#endif
|
||||
@@ -30,10 +30,8 @@ extension SortedDictionary {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension SortedDictionary.SubSequence: @unchecked Sendable
|
||||
where Key: Sendable, Value: Sendable {}
|
||||
#endif
|
||||
|
||||
extension SortedDictionary.SubSequence: Sequence {
|
||||
public typealias Element = SortedDictionary.Element
|
||||
@@ -71,10 +69,8 @@ extension SortedDictionary.SubSequence: Sequence {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension SortedDictionary.SubSequence.Iterator: @unchecked Sendable
|
||||
where Key: Sendable, Value: Sendable {}
|
||||
#endif
|
||||
|
||||
extension SortedDictionary.SubSequence: BidirectionalCollection {
|
||||
public typealias Index = SortedDictionary.Index
|
||||
|
||||
@@ -23,10 +23,8 @@ extension SortedDictionary {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension SortedDictionary.Values: Sendable
|
||||
where Key: Sendable, Value: Sendable {}
|
||||
#endif
|
||||
|
||||
extension SortedDictionary.Values: Sequence {
|
||||
/// The element type of the collection.
|
||||
@@ -57,10 +55,8 @@ extension SortedDictionary.Values: Sequence {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension SortedDictionary.Values.Iterator: Sendable
|
||||
where Key: Sendable, Value: Sendable {}
|
||||
#endif
|
||||
|
||||
extension SortedDictionary.Values: BidirectionalCollection {
|
||||
/// The index type for a dictionary's values view.
|
||||
|
||||
@@ -34,10 +34,8 @@ extension SortedDictionary {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension SortedDictionary.Index: @unchecked Sendable
|
||||
where Key: Sendable, Value: Sendable {}
|
||||
#endif
|
||||
|
||||
// MARK: Equatable
|
||||
extension SortedDictionary.Index: Equatable {
|
||||
|
||||
@@ -9,6 +9,4 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension SortedSet: @unchecked Sendable where Element: Sendable {}
|
||||
#endif
|
||||
@@ -50,7 +50,5 @@ extension SortedSet: Sequence {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension SortedSet.Iterator: @unchecked Sendable
|
||||
where Element: Sendable {}
|
||||
#endif
|
||||
@@ -30,10 +30,8 @@ extension SortedSet {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension SortedSet.SubSequence: @unchecked Sendable
|
||||
where Element: Sendable {}
|
||||
#endif
|
||||
|
||||
extension SortedSet.SubSequence: Sequence {
|
||||
public typealias Element = SortedSet.Element
|
||||
@@ -71,10 +69,8 @@ extension SortedSet.SubSequence: Sequence {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension SortedSet.SubSequence.Iterator: @unchecked Sendable
|
||||
where Element: Sendable {}
|
||||
#endif
|
||||
|
||||
extension SortedSet.SubSequence: BidirectionalCollection {
|
||||
public typealias Index = SortedSet.Index
|
||||
|
||||
@@ -34,10 +34,8 @@ extension SortedSet {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.5)
|
||||
extension SortedSet.Index: @unchecked Sendable
|
||||
where Element: Sendable {}
|
||||
#endif
|
||||
|
||||
// MARK: Equatable
|
||||
extension SortedSet.Index: Equatable {
|
||||
|
||||
-101
@@ -1,101 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1250"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "SortedCollections"
|
||||
BuildableName = "SortedCollections"
|
||||
BlueprintName = "SortedCollections"
|
||||
ReferencedContainer = "container:..">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "NO"
|
||||
buildForArchiving = "NO"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "SortedCollectionsTests"
|
||||
BuildableName = "SortedCollectionsTests"
|
||||
BlueprintName = "SortedCollectionsTests"
|
||||
ReferencedContainer = "container:..">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
enableASanStackUseAfterReturn = "YES"
|
||||
codeCoverageEnabled = "YES">
|
||||
<AdditionalOptions>
|
||||
<AdditionalOption
|
||||
key = "NSZombieEnabled"
|
||||
value = "YES"
|
||||
isEnabled = "YES">
|
||||
</AdditionalOption>
|
||||
</AdditionalOptions>
|
||||
<Testables>
|
||||
<TestableReference
|
||||
skipped = "NO">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "SortedCollectionsTests"
|
||||
BuildableName = "SortedCollectionsTests"
|
||||
BlueprintName = "SortedCollectionsTests"
|
||||
ReferencedContainer = "container:..">
|
||||
</BuildableReference>
|
||||
</TestableReference>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
enableASanStackUseAfterReturn = "YES"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
allowLocationSimulation = "YES">
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Release"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "SortedCollections"
|
||||
BuildableName = "SortedCollections"
|
||||
BlueprintName = "SortedCollections"
|
||||
ReferencedContainer = "container:..">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
Reference in new issue
Block a user