This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Combinatorics with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dankogai/swift-combinatorics.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dankogai/swift-combinatorics
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 3c5d670 update xcode to 12
Cloned https://github.com/dankogai/swift-combinatorics.git
Revision (git rev-parse @):
3c5d670f7dd57ee985c31de3e28641be1d958007
SUCCESS checkout https://github.com/dankogai/swift-combinatorics.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/dankogai/swift-combinatorics.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[1/4] Write swift-version-6F35C1178C84523A.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Emitting module Combinatorics
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:82:19: error: type 'CombinatoricsIndex<Index>.Permutation<SubElement>' does not conform to protocol 'Sequence'
 80 | public struct CombinatoricsIndex<Index:SignedInteger> {
 81 |     /// permutation
 82 |     public struct Permutation<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.Permutation<SubElement>' does not conform to protocol 'Sequence'
 83 |         public let seed:[SubElement] // immutable
 84 |         public let size:Index
Swift.Sequence:3:20: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 1 | public protocol Sequence<Element> {
 2 |     associatedtype Element where Self.Element == Self.Iterator.Element
 3 |     associatedtype Iterator : IteratorProtocol
   |                    `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 4 |     @available(*, unavailable, renamed: "Iterator")
 5 |     typealias Generator = Self.Iterator
Swift.Sequence:2:40: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Permutation<SubElement>' if 'CombinatoricsIndex<Index>.Permutation<SubElement>' conformed to 'IteratorProtocol'
1 | extension Sequence where Self == Self.Iterator {
2 |     @inlinable public __consuming func makeIterator() -> Self
  |                                        `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Permutation<SubElement>' if 'CombinatoricsIndex<Index>.Permutation<SubElement>' conformed to 'IteratorProtocol'
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:107:19: error: type 'CombinatoricsIndex<Index>.Combination<SubElement>' does not conform to protocol 'Sequence'
105 |     }
106 |     /// combination
107 |     public struct Combination<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.Combination<SubElement>' does not conform to protocol 'Sequence'
108 |         public let seed:[SubElement] // immutable
109 |         public let size:Index
Swift.Sequence:3:20: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 1 | public protocol Sequence<Element> {
 2 |     associatedtype Element where Self.Element == Self.Iterator.Element
 3 |     associatedtype Iterator : IteratorProtocol
   |                    `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 4 |     @available(*, unavailable, renamed: "Iterator")
 5 |     typealias Generator = Self.Iterator
Swift.Sequence:2:40: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Combination<SubElement>' if 'CombinatoricsIndex<Index>.Combination<SubElement>' conformed to 'IteratorProtocol'
1 | extension Sequence where Self == Self.Iterator {
2 |     @inlinable public __consuming func makeIterator() -> Self
  |                                        `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Combination<SubElement>' if 'CombinatoricsIndex<Index>.Combination<SubElement>' conformed to 'IteratorProtocol'
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:127:19: error: type 'CombinatoricsIndex<Index>.BaseN<SubElement>' does not conform to protocol 'Sequence'
125 |     }
126 |     /// BaseN
127 |     public struct BaseN<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.BaseN<SubElement>' does not conform to protocol 'Sequence'
128 |         public let seed:[SubElement] // immutable
129 |         public let size:Index
Swift.Sequence:3:20: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 1 | public protocol Sequence<Element> {
 2 |     associatedtype Element where Self.Element == Self.Iterator.Element
 3 |     associatedtype Iterator : IteratorProtocol
   |                    `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 4 |     @available(*, unavailable, renamed: "Iterator")
 5 |     typealias Generator = Self.Iterator
Swift.Sequence:2:40: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.BaseN<SubElement>' if 'CombinatoricsIndex<Index>.BaseN<SubElement>' conformed to 'IteratorProtocol'
1 | extension Sequence where Self == Self.Iterator {
2 |     @inlinable public __consuming func makeIterator() -> Self
  |                                        `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.BaseN<SubElement>' if 'CombinatoricsIndex<Index>.BaseN<SubElement>' conformed to 'IteratorProtocol'
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:148:19: error: type 'CombinatoricsIndex<Index>.PowerSet<SubElement>' does not conform to protocol 'Sequence'
146 |     }
147 |     /// Power Set
148 |     public struct PowerSet<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.PowerSet<SubElement>' does not conform to protocol 'Sequence'
149 |         public let seed:[SubElement] // immutable
150 |         public let count:Index
Swift.Sequence:3:20: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 1 | public protocol Sequence<Element> {
 2 |     associatedtype Element where Self.Element == Self.Iterator.Element
 3 |     associatedtype Iterator : IteratorProtocol
   |                    `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 4 |     @available(*, unavailable, renamed: "Iterator")
 5 |     typealias Generator = Self.Iterator
Swift.Sequence:2:40: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.PowerSet<SubElement>' if 'CombinatoricsIndex<Index>.PowerSet<SubElement>' conformed to 'IteratorProtocol'
1 | extension Sequence where Self == Self.Iterator {
2 |     @inlinable public __consuming func makeIterator() -> Self
  |                                        `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.PowerSet<SubElement>' if 'CombinatoricsIndex<Index>.PowerSet<SubElement>' conformed to 'IteratorProtocol'
3 | }
[4/6] Compiling Combinatorics Combinatorics.swift
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:82:19: error: type 'CombinatoricsIndex<Index>.Permutation<SubElement>' does not conform to protocol 'Sequence'
 80 | public struct CombinatoricsIndex<Index:SignedInteger> {
 81 |     /// permutation
 82 |     public struct Permutation<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.Permutation<SubElement>' does not conform to protocol 'Sequence'
 83 |         public let seed:[SubElement] // immutable
 84 |         public let size:Index
Swift.Sequence:3:20: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 1 | public protocol Sequence<Element> {
 2 |     associatedtype Element where Self.Element == Self.Iterator.Element
 3 |     associatedtype Iterator : IteratorProtocol
   |                    `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 4 |     @available(*, unavailable, renamed: "Iterator")
 5 |     typealias Generator = Self.Iterator
Swift.Sequence:2:40: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Permutation<SubElement>' if 'CombinatoricsIndex<Index>.Permutation<SubElement>' conformed to 'IteratorProtocol'
1 | extension Sequence where Self == Self.Iterator {
2 |     @inlinable public __consuming func makeIterator() -> Self
  |                                        `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Permutation<SubElement>' if 'CombinatoricsIndex<Index>.Permutation<SubElement>' conformed to 'IteratorProtocol'
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:107:19: error: type 'CombinatoricsIndex<Index>.Combination<SubElement>' does not conform to protocol 'Sequence'
105 |     }
106 |     /// combination
107 |     public struct Combination<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.Combination<SubElement>' does not conform to protocol 'Sequence'
108 |         public let seed:[SubElement] // immutable
109 |         public let size:Index
Swift.Sequence:3:20: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 1 | public protocol Sequence<Element> {
 2 |     associatedtype Element where Self.Element == Self.Iterator.Element
 3 |     associatedtype Iterator : IteratorProtocol
   |                    `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 4 |     @available(*, unavailable, renamed: "Iterator")
 5 |     typealias Generator = Self.Iterator
Swift.Sequence:2:40: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Combination<SubElement>' if 'CombinatoricsIndex<Index>.Combination<SubElement>' conformed to 'IteratorProtocol'
1 | extension Sequence where Self == Self.Iterator {
2 |     @inlinable public __consuming func makeIterator() -> Self
  |                                        `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.Combination<SubElement>' if 'CombinatoricsIndex<Index>.Combination<SubElement>' conformed to 'IteratorProtocol'
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:127:19: error: type 'CombinatoricsIndex<Index>.BaseN<SubElement>' does not conform to protocol 'Sequence'
125 |     }
126 |     /// BaseN
127 |     public struct BaseN<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.BaseN<SubElement>' does not conform to protocol 'Sequence'
128 |         public let seed:[SubElement] // immutable
129 |         public let size:Index
Swift.Sequence:3:20: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 1 | public protocol Sequence<Element> {
 2 |     associatedtype Element where Self.Element == Self.Iterator.Element
 3 |     associatedtype Iterator : IteratorProtocol
   |                    `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 4 |     @available(*, unavailable, renamed: "Iterator")
 5 |     typealias Generator = Self.Iterator
Swift.Sequence:2:40: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.BaseN<SubElement>' if 'CombinatoricsIndex<Index>.BaseN<SubElement>' conformed to 'IteratorProtocol'
1 | extension Sequence where Self == Self.Iterator {
2 |     @inlinable public __consuming func makeIterator() -> Self
  |                                        `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.BaseN<SubElement>' if 'CombinatoricsIndex<Index>.BaseN<SubElement>' conformed to 'IteratorProtocol'
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/Combinatorics/Combinatorics.swift:148:19: error: type 'CombinatoricsIndex<Index>.PowerSet<SubElement>' does not conform to protocol 'Sequence'
146 |     }
147 |     /// Power Set
148 |     public struct PowerSet<SubElement> : CombinatoricsType, Sequence {
    |                   `- error: type 'CombinatoricsIndex<Index>.PowerSet<SubElement>' does not conform to protocol 'Sequence'
149 |         public let seed:[SubElement] // immutable
150 |         public let count:Index
Swift.Sequence:3:20: note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 1 | public protocol Sequence<Element> {
 2 |     associatedtype Element where Self.Element == Self.Iterator.Element
 3 |     associatedtype Iterator : IteratorProtocol
   |                    `- note: unable to infer associated type 'Iterator' for protocol 'Sequence'
 4 |     @available(*, unavailable, renamed: "Iterator")
 5 |     typealias Generator = Self.Iterator
Swift.Sequence:2:40: note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.PowerSet<SubElement>' if 'CombinatoricsIndex<Index>.PowerSet<SubElement>' conformed to 'IteratorProtocol'
1 | extension Sequence where Self == Self.Iterator {
2 |     @inlinable public __consuming func makeIterator() -> Self
  |                                        `- note: candidate would match and infer 'Iterator' = 'CombinatoricsIndex<Index>.PowerSet<SubElement>' if 'CombinatoricsIndex<Index>.PowerSet<SubElement>' conformed to 'IteratorProtocol'
3 | }
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.