From 29fd23947446d51ca00c19f873837f654a253dde Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Wed, 18 Nov 2026 16:28:47 -0800 Subject: [PATCH] [Benchmarks] Unconditionally enable unstable traits in swift-collections Evidently some versions of Xcode have trouble dealing with conditionally forwarded traits. --- Benchmarks/Package.swift | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/Benchmarks/Package.swift b/Benchmarks/Package.swift index 3d9154dd..6bbd3413 100644 --- a/Benchmarks/Package.swift +++ b/Benchmarks/Package.swift @@ -18,9 +18,6 @@ let _traits: Set = [ .default( enabledTraits: [ // "EnableRustBenchmarks", -// "UnstableContainersPreview", -// "UnstableHashedContainers", -// "UnstableSortedCollections", ] ), .trait( @@ -28,9 +25,6 @@ let _traits: Set = [ description: """ Enables building and running benchmarks written in Rust, for comparative analysis. """), - .trait(name: "UnstableContainersPreview"), - .trait(name: "UnstableSortedCollections"), - .trait(name: "UnstableHashedContainers"), ] let availabilityMacros: KeyValuePairs = [ @@ -70,15 +64,9 @@ let package = Package( name: "swift-collections", path: "..", traits: [ - .trait( - name: "UnstableContainersPreview", - condition: .when(traits: ["UnstableContainersPreview"])), - .trait( - name: "UnstableHashedContainers", - condition: .when(traits: ["UnstableHashedContainers"])), - .trait( - name: "UnstableSortedCollections", - condition: .when(traits: ["UnstableSortedCollections"])), + .trait(name: "UnstableContainersPreview"), + .trait(name: "UnstableHashedContainers"), + .trait(name: "UnstableSortedCollections"), ] ), .package(url: "https://github.com/apple/swift-collections-benchmark", from: "0.0.4"),