Build Information
Failed to build SwiftSpellbook, reference main (ba9e30
), with Swift 5.9 for macOS (SPM) on 5 Mar 2025 02:12:42 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Build Log
) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:66: error: 'throws' may only occur before '->'
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: expressions are not allowed at the top level
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:45: error: expected ',' separator
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:45: error: expected type
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:89: error: consecutive declarations on a line must be separated by ';'
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:89: error: expected declaration
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:569:1: note: in extension of 'SBPredicate'
extension SBPredicate {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:29: error: @escaping attribute only applies to function types
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:45: error: @escaping attribute only applies to function types
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:144:17: error: expected '{' in body of function declaration
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:278:17: error: expected '{' in body of function declaration
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:471:5: warning: @discardableResult declared on a function returning Void is unnecessary
@discardableResult
^~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:37: error: expected '{' in body of function declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:28: error: expected '{' in body of function declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:513:28: error: expected '{' in body of function declaration
@inlinable public func indices<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:528:5: warning: @discardableResult declared on a function returning Void is unnecessary
@discardableResult
^~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:529:37: error: expected '{' in body of function declaration
@inlinable public mutating func updateFirst<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:63: error: generic parameter 'R' is not used in function signature
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: error: expected '{' in body of function declaration
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:10: error: cannot find 'Failure' in scope
) throws(Failure) -> R {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:22: error: cannot find 'R' in scope
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:41: error: cannot find 'predicate' in scope
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:10: error: expected type before '->'
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:22: error: expected type after '->'
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:39:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { (value) throws(Failure) -> Bool in try evaluate(value) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:45:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { $0 == value }
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:52:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { $0[keyPath: keyPath] == value }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:119:26: error: cannot call value of non-function type 'Dictionary<Key, Value>.Element' (aka '(key: Key, value: Value)')
if predicate.evaluate(element) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: generic parameter 'Failure' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: generic parameter 'R' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: cannot convert return expression of type '()' to return type 'Dictionary<Key, Value>'
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:45: error: trailing closure passed to parameter of type 'SBPredicate<(Dictionary<Key, Value>.Element) -> Bool, Failure>' (aka 'SBPredicate<((key: Key, value: Value)) -> Bool, Failure>') that does not accept a closure
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:34: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:55: error: cannot convert value of type '()' to closure result type '[Key : Value]'
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:55: error: generic parameter 'Failure' could not be inferred
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:144:17: note: in call to function 'filter(remaining:_:)'
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:92: error: cannot convert value of type '(Dictionary<Key, Value>.Element) throws -> Bool' (aka '((key: Key, value: Value)) throws -> Bool') to expected argument type '(key: Key, value: Value)'
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: generic parameter 'Failure' could not be inferred
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: generic parameter 'R' could not be inferred
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:50: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) throws -> Bool, Failure>' that does not accept a closure
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:38: error: converting non-escaping parameter 'isIncluded' to generic parameter 'Value' may allow it to escape
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: cannot convert return expression of type '()' to return type '[Self.Element]'
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:458:23: error: no exact matches in call to initializer
let removed = Self(filter(remaining: &remaining, predicate))
^
Swift.RangeReplaceableCollection:7:5: note: candidate requires that '()' conform to 'Sequence' (requirement specified as 'S' : 'Sequence')
init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element
^
Swift.RangeReplaceableCollection:3:23: note: candidate requires that '()' conform to 'Sequence' (requirement specified as 'S' : 'Sequence')
@inlinable public init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: generic parameter 'Failure' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: generic parameter 'R' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: cannot convert return expression of type '()' to return type 'Self'
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:45: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) -> Bool, Failure>' that does not accept a closure
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:34: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: cannot convert return expression of type '()' to return type 'Self.Element?'
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self.Element
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:49: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) throws -> Bool, Failure>' that does not accept a closure
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:38: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: generic parameter 'Failure' could not be inferred
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: generic parameter 'R' could not be inferred
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:555:9: error: cannot convert return expression of type '()' to return type 'Self.Element?'
updateFirst(element, .equals(at: keyPath, to: element[keyPath: keyPath]))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self.Element
[54/64] Compiling SpellbookFoundation Extensions - Comparable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:28:33: error: consecutive declarations on a line must be separated by ';'
public var evaluate: (Value) throws(Failure) -> Bool
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:28:34: error: expected declaration
public var evaluate: (Value) throws(Failure) -> Bool
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:27:15: note: in declaration of 'SBPredicate'
public struct SBPredicate<Value, Failure: Error> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:47: error: expected ',' separator
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:47: error: expected parameter name followed by ':'
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:63: error: expected ',' separator
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:63: error: expected parameter name followed by ':'
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:39:25: error: 'throws' may only occur before '->'
.init { (value) throws(Failure) -> Bool in try evaluate(value) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Key: Value] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: expected declaration
) throws(Failure) -> [Key: Value] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:133:1: note: in extension of 'Dictionary'
extension Dictionary {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Element] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: expected declaration
) throws(Failure) -> [Element] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:254:1: note: in extension of 'Sequence'
extension Sequence {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: consecutive declarations on a line must be separated by ';'
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: expected declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: consecutive declarations on a line must be separated by ';'
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: expected declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> RangeSet<Index> {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: expected declaration
) throws(Failure) -> RangeSet<Index> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: expected declaration
) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected ',' separator
_ predicate: (Value) throws(Failure) -> Bool,
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected parameter name followed by ':'
_ predicate: (Value) throws(Failure) -> Bool,
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: consecutive statements on a line must be separated by ';'
) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:66: error: 'throws' may only occur before '->'
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: expressions are not allowed at the top level
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:45: error: expected ',' separator
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:45: error: expected type
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:89: error: consecutive declarations on a line must be separated by ';'
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:89: error: expected declaration
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:569:1: note: in extension of 'SBPredicate'
extension SBPredicate {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:29: error: @escaping attribute only applies to function types
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:45: error: @escaping attribute only applies to function types
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:144:17: error: expected '{' in body of function declaration
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:278:17: error: expected '{' in body of function declaration
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:471:5: warning: @discardableResult declared on a function returning Void is unnecessary
@discardableResult
^~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:37: error: expected '{' in body of function declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:28: error: expected '{' in body of function declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:513:28: error: expected '{' in body of function declaration
@inlinable public func indices<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:528:5: warning: @discardableResult declared on a function returning Void is unnecessary
@discardableResult
^~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:529:37: error: expected '{' in body of function declaration
@inlinable public mutating func updateFirst<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:63: error: generic parameter 'R' is not used in function signature
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: error: expected '{' in body of function declaration
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:10: error: cannot find 'Failure' in scope
) throws(Failure) -> R {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:22: error: cannot find 'R' in scope
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:41: error: cannot find 'predicate' in scope
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:10: error: expected type before '->'
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:22: error: expected type after '->'
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:39:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { (value) throws(Failure) -> Bool in try evaluate(value) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:45:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { $0 == value }
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:52:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { $0[keyPath: keyPath] == value }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:119:26: error: cannot call value of non-function type 'Dictionary<Key, Value>.Element' (aka '(key: Key, value: Value)')
if predicate.evaluate(element) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: generic parameter 'Failure' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: generic parameter 'R' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: cannot convert return expression of type '()' to return type 'Dictionary<Key, Value>'
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:45: error: trailing closure passed to parameter of type 'SBPredicate<(Dictionary<Key, Value>.Element) -> Bool, Failure>' (aka 'SBPredicate<((key: Key, value: Value)) -> Bool, Failure>') that does not accept a closure
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:34: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:55: error: cannot convert value of type '()' to closure result type '[Key : Value]'
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:55: error: generic parameter 'Failure' could not be inferred
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:144:17: note: in call to function 'filter(remaining:_:)'
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:92: error: cannot convert value of type '(Dictionary<Key, Value>.Element) throws -> Bool' (aka '((key: Key, value: Value)) throws -> Bool') to expected argument type '(key: Key, value: Value)'
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: generic parameter 'Failure' could not be inferred
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: generic parameter 'R' could not be inferred
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:50: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) throws -> Bool, Failure>' that does not accept a closure
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:38: error: converting non-escaping parameter 'isIncluded' to generic parameter 'Value' may allow it to escape
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: cannot convert return expression of type '()' to return type '[Self.Element]'
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:458:23: error: no exact matches in call to initializer
let removed = Self(filter(remaining: &remaining, predicate))
^
Swift.RangeReplaceableCollection:7:5: note: candidate requires that '()' conform to 'Sequence' (requirement specified as 'S' : 'Sequence')
init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element
^
Swift.RangeReplaceableCollection:3:23: note: candidate requires that '()' conform to 'Sequence' (requirement specified as 'S' : 'Sequence')
@inlinable public init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: generic parameter 'Failure' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: generic parameter 'R' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: cannot convert return expression of type '()' to return type 'Self'
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:45: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) -> Bool, Failure>' that does not accept a closure
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:34: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: cannot convert return expression of type '()' to return type 'Self.Element?'
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self.Element
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:49: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) throws -> Bool, Failure>' that does not accept a closure
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:38: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: generic parameter 'Failure' could not be inferred
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: generic parameter 'R' could not be inferred
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:555:9: error: cannot convert return expression of type '()' to return type 'Self.Element?'
updateFirst(element, .equals(at: keyPath, to: element[keyPath: keyPath]))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self.Element
[55/64] Compiling SpellbookFoundation Extensions - Formatters.swift
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:28:33: error: consecutive declarations on a line must be separated by ';'
public var evaluate: (Value) throws(Failure) -> Bool
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:28:34: error: expected declaration
public var evaluate: (Value) throws(Failure) -> Bool
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:27:15: note: in declaration of 'SBPredicate'
public struct SBPredicate<Value, Failure: Error> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:47: error: expected ',' separator
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:47: error: expected parameter name followed by ':'
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:63: error: expected ',' separator
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:63: error: expected parameter name followed by ':'
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:39:25: error: 'throws' may only occur before '->'
.init { (value) throws(Failure) -> Bool in try evaluate(value) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Key: Value] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: expected declaration
) throws(Failure) -> [Key: Value] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:133:1: note: in extension of 'Dictionary'
extension Dictionary {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Element] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: expected declaration
) throws(Failure) -> [Element] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:254:1: note: in extension of 'Sequence'
extension Sequence {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: consecutive declarations on a line must be separated by ';'
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: expected declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: consecutive declarations on a line must be separated by ';'
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: expected declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> RangeSet<Index> {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: expected declaration
) throws(Failure) -> RangeSet<Index> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: expected declaration
) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected ',' separator
_ predicate: (Value) throws(Failure) -> Bool,
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected parameter name followed by ':'
_ predicate: (Value) throws(Failure) -> Bool,
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: consecutive statements on a line must be separated by ';'
) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:66: error: 'throws' may only occur before '->'
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: expressions are not allowed at the top level
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:45: error: expected ',' separator
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:45: error: expected type
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:89: error: consecutive declarations on a line must be separated by ';'
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:89: error: expected declaration
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:569:1: note: in extension of 'SBPredicate'
extension SBPredicate {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:29: error: @escaping attribute only applies to function types
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:45: error: @escaping attribute only applies to function types
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:144:17: error: expected '{' in body of function declaration
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:278:17: error: expected '{' in body of function declaration
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:471:5: warning: @discardableResult declared on a function returning Void is unnecessary
@discardableResult
^~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:37: error: expected '{' in body of function declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:28: error: expected '{' in body of function declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:513:28: error: expected '{' in body of function declaration
@inlinable public func indices<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:528:5: warning: @discardableResult declared on a function returning Void is unnecessary
@discardableResult
^~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:529:37: error: expected '{' in body of function declaration
@inlinable public mutating func updateFirst<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:63: error: generic parameter 'R' is not used in function signature
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: error: expected '{' in body of function declaration
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:10: error: cannot find 'Failure' in scope
) throws(Failure) -> R {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:22: error: cannot find 'R' in scope
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:41: error: cannot find 'predicate' in scope
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:10: error: expected type before '->'
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:22: error: expected type after '->'
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:39:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { (value) throws(Failure) -> Bool in try evaluate(value) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:45:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { $0 == value }
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:52:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { $0[keyPath: keyPath] == value }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:119:26: error: cannot call value of non-function type 'Dictionary<Key, Value>.Element' (aka '(key: Key, value: Value)')
if predicate.evaluate(element) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: generic parameter 'Failure' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: generic parameter 'R' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: cannot convert return expression of type '()' to return type 'Dictionary<Key, Value>'
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:45: error: trailing closure passed to parameter of type 'SBPredicate<(Dictionary<Key, Value>.Element) -> Bool, Failure>' (aka 'SBPredicate<((key: Key, value: Value)) -> Bool, Failure>') that does not accept a closure
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:34: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:55: error: cannot convert value of type '()' to closure result type '[Key : Value]'
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:55: error: generic parameter 'Failure' could not be inferred
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:144:17: note: in call to function 'filter(remaining:_:)'
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:92: error: cannot convert value of type '(Dictionary<Key, Value>.Element) throws -> Bool' (aka '((key: Key, value: Value)) throws -> Bool') to expected argument type '(key: Key, value: Value)'
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: generic parameter 'Failure' could not be inferred
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: generic parameter 'R' could not be inferred
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:50: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) throws -> Bool, Failure>' that does not accept a closure
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:38: error: converting non-escaping parameter 'isIncluded' to generic parameter 'Value' may allow it to escape
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: cannot convert return expression of type '()' to return type '[Self.Element]'
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:458:23: error: no exact matches in call to initializer
let removed = Self(filter(remaining: &remaining, predicate))
^
Swift.RangeReplaceableCollection:7:5: note: candidate requires that '()' conform to 'Sequence' (requirement specified as 'S' : 'Sequence')
init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element
^
Swift.RangeReplaceableCollection:3:23: note: candidate requires that '()' conform to 'Sequence' (requirement specified as 'S' : 'Sequence')
@inlinable public init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: generic parameter 'Failure' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: generic parameter 'R' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: cannot convert return expression of type '()' to return type 'Self'
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:45: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) -> Bool, Failure>' that does not accept a closure
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:34: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: cannot convert return expression of type '()' to return type 'Self.Element?'
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self.Element
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:49: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) throws -> Bool, Failure>' that does not accept a closure
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:38: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: generic parameter 'Failure' could not be inferred
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: generic parameter 'R' could not be inferred
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:555:9: error: cannot convert return expression of type '()' to return type 'Self.Element?'
updateFirst(element, .equals(at: keyPath, to: element[keyPath: keyPath]))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self.Element
[56/64] Compiling SpellbookFoundation Extensions - StandardTypes.swift
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:28:33: error: consecutive declarations on a line must be separated by ';'
public var evaluate: (Value) throws(Failure) -> Bool
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:28:34: error: expected declaration
public var evaluate: (Value) throws(Failure) -> Bool
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:27:15: note: in declaration of 'SBPredicate'
public struct SBPredicate<Value, Failure: Error> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:47: error: expected ',' separator
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:47: error: expected parameter name followed by ':'
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:63: error: expected ',' separator
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:63: error: expected parameter name followed by ':'
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:39:25: error: 'throws' may only occur before '->'
.init { (value) throws(Failure) -> Bool in try evaluate(value) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Key: Value] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: expected declaration
) throws(Failure) -> [Key: Value] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:133:1: note: in extension of 'Dictionary'
extension Dictionary {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Element] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: expected declaration
) throws(Failure) -> [Element] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:254:1: note: in extension of 'Sequence'
extension Sequence {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: consecutive declarations on a line must be separated by ';'
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: expected declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: consecutive declarations on a line must be separated by ';'
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: expected declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> RangeSet<Index> {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: expected declaration
) throws(Failure) -> RangeSet<Index> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: expected declaration
) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected ',' separator
_ predicate: (Value) throws(Failure) -> Bool,
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected parameter name followed by ':'
_ predicate: (Value) throws(Failure) -> Bool,
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: consecutive statements on a line must be separated by ';'
) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:66: error: 'throws' may only occur before '->'
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: expressions are not allowed at the top level
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:45: error: expected ',' separator
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:45: error: expected type
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:89: error: consecutive declarations on a line must be separated by ';'
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:89: error: expected declaration
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:569:1: note: in extension of 'SBPredicate'
extension SBPredicate {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:29: error: @escaping attribute only applies to function types
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:45: error: @escaping attribute only applies to function types
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:144:17: error: expected '{' in body of function declaration
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:278:17: error: expected '{' in body of function declaration
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:471:5: warning: @discardableResult declared on a function returning Void is unnecessary
@discardableResult
^~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:37: error: expected '{' in body of function declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:28: error: expected '{' in body of function declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:513:28: error: expected '{' in body of function declaration
@inlinable public func indices<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:528:5: warning: @discardableResult declared on a function returning Void is unnecessary
@discardableResult
^~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:529:37: error: expected '{' in body of function declaration
@inlinable public mutating func updateFirst<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:63: error: generic parameter 'R' is not used in function signature
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: error: expected '{' in body of function declaration
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:10: error: cannot find 'Failure' in scope
) throws(Failure) -> R {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:22: error: cannot find 'R' in scope
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:41: error: cannot find 'predicate' in scope
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:10: error: expected type before '->'
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:22: error: expected type after '->'
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:39:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { (value) throws(Failure) -> Bool in try evaluate(value) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:45:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { $0 == value }
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:52:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { $0[keyPath: keyPath] == value }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:119:26: error: cannot call value of non-function type 'Dictionary<Key, Value>.Element' (aka '(key: Key, value: Value)')
if predicate.evaluate(element) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: generic parameter 'Failure' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: generic parameter 'R' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: cannot convert return expression of type '()' to return type 'Dictionary<Key, Value>'
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:45: error: trailing closure passed to parameter of type 'SBPredicate<(Dictionary<Key, Value>.Element) -> Bool, Failure>' (aka 'SBPredicate<((key: Key, value: Value)) -> Bool, Failure>') that does not accept a closure
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:34: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:55: error: cannot convert value of type '()' to closure result type '[Key : Value]'
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:55: error: generic parameter 'Failure' could not be inferred
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:144:17: note: in call to function 'filter(remaining:_:)'
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:92: error: cannot convert value of type '(Dictionary<Key, Value>.Element) throws -> Bool' (aka '((key: Key, value: Value)) throws -> Bool') to expected argument type '(key: Key, value: Value)'
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: generic parameter 'Failure' could not be inferred
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: generic parameter 'R' could not be inferred
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:50: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) throws -> Bool, Failure>' that does not accept a closure
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:38: error: converting non-escaping parameter 'isIncluded' to generic parameter 'Value' may allow it to escape
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: cannot convert return expression of type '()' to return type '[Self.Element]'
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:458:23: error: no exact matches in call to initializer
let removed = Self(filter(remaining: &remaining, predicate))
^
Swift.RangeReplaceableCollection:7:5: note: candidate requires that '()' conform to 'Sequence' (requirement specified as 'S' : 'Sequence')
init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element
^
Swift.RangeReplaceableCollection:3:23: note: candidate requires that '()' conform to 'Sequence' (requirement specified as 'S' : 'Sequence')
@inlinable public init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: generic parameter 'Failure' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: generic parameter 'R' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: cannot convert return expression of type '()' to return type 'Self'
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:45: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) -> Bool, Failure>' that does not accept a closure
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:34: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: cannot convert return expression of type '()' to return type 'Self.Element?'
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self.Element
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:49: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) throws -> Bool, Failure>' that does not accept a closure
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:38: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: generic parameter 'Failure' could not be inferred
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: generic parameter 'R' could not be inferred
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:555:9: error: cannot convert return expression of type '()' to return type 'Self.Element?'
updateFirst(element, .equals(at: keyPath, to: element[keyPath: keyPath]))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self.Element
[57/64] Compiling SpellbookFoundation SBUnit.swift
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:28:33: error: consecutive declarations on a line must be separated by ';'
public var evaluate: (Value) throws(Failure) -> Bool
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:28:34: error: expected declaration
public var evaluate: (Value) throws(Failure) -> Bool
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:27:15: note: in declaration of 'SBPredicate'
public struct SBPredicate<Value, Failure: Error> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:47: error: expected ',' separator
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:47: error: expected parameter name followed by ':'
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:63: error: expected ',' separator
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:63: error: expected parameter name followed by ':'
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:39:25: error: 'throws' may only occur before '->'
.init { (value) throws(Failure) -> Bool in try evaluate(value) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Key: Value] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: expected declaration
) throws(Failure) -> [Key: Value] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:133:1: note: in extension of 'Dictionary'
extension Dictionary {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Element] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: expected declaration
) throws(Failure) -> [Element] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:254:1: note: in extension of 'Sequence'
extension Sequence {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: consecutive declarations on a line must be separated by ';'
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: expected declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: consecutive declarations on a line must be separated by ';'
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: expected declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> RangeSet<Index> {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: expected declaration
) throws(Failure) -> RangeSet<Index> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: expected declaration
) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected ',' separator
_ predicate: (Value) throws(Failure) -> Bool,
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected parameter name followed by ':'
_ predicate: (Value) throws(Failure) -> Bool,
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: consecutive statements on a line must be separated by ';'
) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:66: error: 'throws' may only occur before '->'
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: expressions are not allowed at the top level
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:45: error: expected ',' separator
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:45: error: expected type
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:89: error: consecutive declarations on a line must be separated by ';'
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:89: error: expected declaration
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:569:1: note: in extension of 'SBPredicate'
extension SBPredicate {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:29: error: @escaping attribute only applies to function types
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:45: error: @escaping attribute only applies to function types
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:144:17: error: expected '{' in body of function declaration
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:278:17: error: expected '{' in body of function declaration
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:471:5: warning: @discardableResult declared on a function returning Void is unnecessary
@discardableResult
^~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:37: error: expected '{' in body of function declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:28: error: expected '{' in body of function declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:513:28: error: expected '{' in body of function declaration
@inlinable public func indices<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:528:5: warning: @discardableResult declared on a function returning Void is unnecessary
@discardableResult
^~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:529:37: error: expected '{' in body of function declaration
@inlinable public mutating func updateFirst<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:63: error: generic parameter 'R' is not used in function signature
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: error: expected '{' in body of function declaration
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:10: error: cannot find 'Failure' in scope
) throws(Failure) -> R {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:22: error: cannot find 'R' in scope
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:41: error: cannot find 'predicate' in scope
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:10: error: expected type before '->'
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:22: error: expected type after '->'
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:39:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { (value) throws(Failure) -> Bool in try evaluate(value) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:45:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { $0 == value }
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:52:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { $0[keyPath: keyPath] == value }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:119:26: error: cannot call value of non-function type 'Dictionary<Key, Value>.Element' (aka '(key: Key, value: Value)')
if predicate.evaluate(element) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: generic parameter 'Failure' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: generic parameter 'R' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: cannot convert return expression of type '()' to return type 'Dictionary<Key, Value>'
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:45: error: trailing closure passed to parameter of type 'SBPredicate<(Dictionary<Key, Value>.Element) -> Bool, Failure>' (aka 'SBPredicate<((key: Key, value: Value)) -> Bool, Failure>') that does not accept a closure
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:34: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:55: error: cannot convert value of type '()' to closure result type '[Key : Value]'
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:55: error: generic parameter 'Failure' could not be inferred
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:144:17: note: in call to function 'filter(remaining:_:)'
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:92: error: cannot convert value of type '(Dictionary<Key, Value>.Element) throws -> Bool' (aka '((key: Key, value: Value)) throws -> Bool') to expected argument type '(key: Key, value: Value)'
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: generic parameter 'Failure' could not be inferred
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: generic parameter 'R' could not be inferred
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:50: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) throws -> Bool, Failure>' that does not accept a closure
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:38: error: converting non-escaping parameter 'isIncluded' to generic parameter 'Value' may allow it to escape
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: cannot convert return expression of type '()' to return type '[Self.Element]'
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:458:23: error: no exact matches in call to initializer
let removed = Self(filter(remaining: &remaining, predicate))
^
Swift.RangeReplaceableCollection:7:5: note: candidate requires that '()' conform to 'Sequence' (requirement specified as 'S' : 'Sequence')
init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element
^
Swift.RangeReplaceableCollection:3:23: note: candidate requires that '()' conform to 'Sequence' (requirement specified as 'S' : 'Sequence')
@inlinable public init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: generic parameter 'Failure' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: generic parameter 'R' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: cannot convert return expression of type '()' to return type 'Self'
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:45: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) -> Bool, Failure>' that does not accept a closure
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:34: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: cannot convert return expression of type '()' to return type 'Self.Element?'
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self.Element
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:49: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) throws -> Bool, Failure>' that does not accept a closure
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:38: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: generic parameter 'Failure' could not be inferred
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: generic parameter 'R' could not be inferred
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:555:9: error: cannot convert return expression of type '()' to return type 'Self.Element?'
updateFirst(element, .equals(at: keyPath, to: element[keyPath: keyPath]))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self.Element
[58/64] Compiling SpellbookFoundation SpellbookLog.swift
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:28:33: error: consecutive declarations on a line must be separated by ';'
public var evaluate: (Value) throws(Failure) -> Bool
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:28:34: error: expected declaration
public var evaluate: (Value) throws(Failure) -> Bool
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:27:15: note: in declaration of 'SBPredicate'
public struct SBPredicate<Value, Failure: Error> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:47: error: expected ',' separator
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:47: error: expected parameter name followed by ':'
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:63: error: expected ',' separator
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:63: error: expected parameter name followed by ':'
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:39:25: error: 'throws' may only occur before '->'
.init { (value) throws(Failure) -> Bool in try evaluate(value) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Key: Value] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: expected declaration
) throws(Failure) -> [Key: Value] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:133:1: note: in extension of 'Dictionary'
extension Dictionary {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Element] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: expected declaration
) throws(Failure) -> [Element] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:254:1: note: in extension of 'Sequence'
extension Sequence {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: consecutive declarations on a line must be separated by ';'
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: expected declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: consecutive declarations on a line must be separated by ';'
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: expected declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> RangeSet<Index> {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: expected declaration
) throws(Failure) -> RangeSet<Index> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: expected declaration
) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected ',' separator
_ predicate: (Value) throws(Failure) -> Bool,
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected parameter name followed by ':'
_ predicate: (Value) throws(Failure) -> Bool,
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: consecutive statements on a line must be separated by ';'
) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:66: error: 'throws' may only occur before '->'
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: expressions are not allowed at the top level
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:45: error: expected ',' separator
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:45: error: expected type
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:89: error: consecutive declarations on a line must be separated by ';'
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:572:89: error: expected declaration
internal func _call<R>(_ body: ((Value) throws(Failure) -> Bool) throws -> R) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:569:1: note: in extension of 'SBPredicate'
extension SBPredicate {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:29: error: @escaping attribute only applies to function types
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:34:45: error: @escaping attribute only applies to function types
public static func `where`(_ predicate: @escaping (Value) throws(Failure) -> Bool) -> Self {
^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:144:17: error: expected '{' in body of function declaration
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:278:17: error: expected '{' in body of function declaration
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:471:5: warning: @discardableResult declared on a function returning Void is unnecessary
@discardableResult
^~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:37: error: expected '{' in body of function declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:28: error: expected '{' in body of function declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:513:28: error: expected '{' in body of function declaration
@inlinable public func indices<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:528:5: warning: @discardableResult declared on a function returning Void is unnecessary
@discardableResult
^~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:529:37: error: expected '{' in body of function declaration
@inlinable public mutating func updateFirst<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:63: error: generic parameter 'R' is not used in function signature
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: error: expected '{' in body of function declaration
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:10: error: cannot find 'Failure' in scope
) throws(Failure) -> R {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:22: error: cannot find 'R' in scope
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:41: error: cannot find 'predicate' in scope
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:10: error: expected type before '->'
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:22: error: expected type after '->'
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:39:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { (value) throws(Failure) -> Bool in try evaluate(value) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:45:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { $0 == value }
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:52:15: error: trailing closure passed to parameter of type 'Value' that does not accept a closure
.init { $0[keyPath: keyPath] == value }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:30:12: note: 'init(_:)' declared here
public init(_ evaluate: @escaping (Value) throws(Failure) -> Bool) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:119:26: error: cannot call value of non-function type 'Dictionary<Key, Value>.Element' (aka '(key: Key, value: Value)')
if predicate.evaluate(element) {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: generic parameter 'Failure' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: generic parameter 'R' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:9: error: cannot convert return expression of type '()' to return type 'Dictionary<Key, Value>'
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:45: error: trailing closure passed to parameter of type 'SBPredicate<(Dictionary<Key, Value>.Element) -> Bool, Failure>' (aka 'SBPredicate<((key: Key, value: Value)) -> Bool, Failure>') that does not accept a closure
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:129:34: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:55: error: cannot convert value of type '()' to closure result type '[Key : Value]'
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:55: error: generic parameter 'Failure' could not be inferred
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:144:17: note: in call to function 'filter(remaining:_:)'
public func filter<Failure>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:170:92: error: cannot convert value of type '(Dictionary<Key, Value>.Element) throws -> Bool' (aka '((key: Key, value: Value)) throws -> Bool') to expected argument type '(key: Key, value: Value)'
try withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, .where($0)) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: generic parameter 'Failure' could not be inferred
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: generic parameter 'R' could not be inferred
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:50: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) throws -> Bool, Failure>' that does not accept a closure
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:38: error: converting non-escaping parameter 'isIncluded' to generic parameter 'Value' may allow it to escape
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:320:13: error: cannot convert return expression of type '()' to return type '[Self.Element]'
try _withoutActuallyEscaping(isIncluded) { try filter(remaining: &remaining, $0) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:458:23: error: no exact matches in call to initializer
let removed = Self(filter(remaining: &remaining, predicate))
^
Swift.RangeReplaceableCollection:7:5: note: candidate requires that '()' conform to 'Sequence' (requirement specified as 'S' : 'Sequence')
init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element
^
Swift.RangeReplaceableCollection:3:23: note: candidate requires that '()' conform to 'Sequence' (requirement specified as 'S' : 'Sequence')
@inlinable public init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: generic parameter 'Failure' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: generic parameter 'R' could not be inferred
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:9: error: cannot convert return expression of type '()' to return type 'Self'
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:45: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) -> Bool, Failure>' that does not accept a closure
_withoutActuallyEscaping(predicate) { popAll($0) }
^~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:465:34: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
_withoutActuallyEscaping(predicate) { popAll($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: cannot convert return expression of type '()' to return type 'Self.Element?'
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self.Element
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:49: error: trailing closure passed to parameter of type 'SBPredicate<(Self.Element) throws -> Bool, Failure>' that does not accept a closure
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: '_withoutActuallyEscaping(_:do:)' declared here
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:38: error: converting non-escaping parameter 'predicate' to generic parameter 'Value' may allow it to escape
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:40: note: generic parameters are always considered '@escaping'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: generic parameter 'Failure' could not be inferred
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:482:13: error: generic parameter 'R' could not be inferred
try _withoutActuallyEscaping(predicate) { try removeFirst($0) }
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:560:15: note: in call to function '_withoutActuallyEscaping(_:do:)'
internal func _withoutActuallyEscaping<Value, Failure: Error, R>(
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:555:9: error: cannot convert return expression of type '()' to return type 'Self.Element?'
updateFirst(element, .equals(at: keyPath, to: element[keyPath: keyPath]))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as! Self.Element
[59/64] Compiling SpellbookFoundation Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected ',' separator
_ predicate: (Value) throws(Failure) -> Bool,
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected parameter name followed by ':'
_ predicate: (Value) throws(Failure) -> Bool,
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: consecutive statements on a line must be separated by ';'
) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:66: error: 'throws' may only occur before '->'
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: expressions are not allowed at the top level
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: consecutive declarations on a line must be separated by ';'
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: expected declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: consecutive declarations on a line must be separated by ';'
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: expected declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> RangeSet<Index> {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: expected declaration
) throws(Failure) -> RangeSet<Index> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: expected declaration
) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Element] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: expected declaration
) throws(Failure) -> [Element] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:254:1: note: in extension of 'Sequence'
extension Sequence {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Key: Value] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: expected declaration
) throws(Failure) -> [Key: Value] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:133:1: note: in extension of 'Dictionary'
extension Dictionary {
^
[60/64] Compiling SpellbookFoundation ValueBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected ',' separator
_ predicate: (Value) throws(Failure) -> Bool,
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected parameter name followed by ':'
_ predicate: (Value) throws(Failure) -> Bool,
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: consecutive statements on a line must be separated by ';'
) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:66: error: 'throws' may only occur before '->'
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: expressions are not allowed at the top level
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: consecutive declarations on a line must be separated by ';'
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: expected declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: consecutive declarations on a line must be separated by ';'
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: expected declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> RangeSet<Index> {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: expected declaration
) throws(Failure) -> RangeSet<Index> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: expected declaration
) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Element] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: expected declaration
) throws(Failure) -> [Element] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:254:1: note: in extension of 'Sequence'
extension Sequence {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Key: Value] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: expected declaration
) throws(Failure) -> [Key: Value] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:133:1: note: in extension of 'Dictionary'
extension Dictionary {
^
[61/64] Compiling SpellbookFoundation WildcardExpression.swift
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected ',' separator
_ predicate: (Value) throws(Failure) -> Bool,
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected parameter name followed by ':'
_ predicate: (Value) throws(Failure) -> Bool,
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: consecutive statements on a line must be separated by ';'
) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:66: error: 'throws' may only occur before '->'
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: expressions are not allowed at the top level
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: consecutive declarations on a line must be separated by ';'
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: expected declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: consecutive declarations on a line must be separated by ';'
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: expected declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> RangeSet<Index> {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: expected declaration
) throws(Failure) -> RangeSet<Index> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: expected declaration
) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Element] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: expected declaration
) throws(Failure) -> [Element] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:254:1: note: in extension of 'Sequence'
extension Sequence {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Key: Value] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: expected declaration
) throws(Failure) -> [Key: Value] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:133:1: note: in extension of 'Dictionary'
extension Dictionary {
^
[62/64] Compiling SpellbookFoundation DictionaryCodingKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected ',' separator
_ predicate: (Value) throws(Failure) -> Bool,
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected parameter name followed by ':'
_ predicate: (Value) throws(Failure) -> Bool,
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: consecutive statements on a line must be separated by ';'
) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:66: error: 'throws' may only occur before '->'
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: expressions are not allowed at the top level
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: consecutive declarations on a line must be separated by ';'
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: expected declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: consecutive declarations on a line must be separated by ';'
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: expected declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> RangeSet<Index> {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: expected declaration
) throws(Failure) -> RangeSet<Index> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: expected declaration
) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Element] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: expected declaration
) throws(Failure) -> [Element] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:254:1: note: in extension of 'Sequence'
extension Sequence {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Key: Value] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: expected declaration
) throws(Failure) -> [Key: Value] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:133:1: note: in extension of 'Dictionary'
extension Dictionary {
^
[63/64] Compiling SpellbookFoundation DictionaryReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected ',' separator
_ predicate: (Value) throws(Failure) -> Bool,
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected parameter name followed by ':'
_ predicate: (Value) throws(Failure) -> Bool,
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: consecutive statements on a line must be separated by ';'
) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:66: error: 'throws' may only occur before '->'
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: expressions are not allowed at the top level
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: consecutive declarations on a line must be separated by ';'
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: expected declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: consecutive declarations on a line must be separated by ';'
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: expected declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> RangeSet<Index> {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: expected declaration
) throws(Failure) -> RangeSet<Index> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: expected declaration
) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Element] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: expected declaration
) throws(Failure) -> [Element] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:254:1: note: in extension of 'Sequence'
extension Sequence {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Key: Value] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: expected declaration
) throws(Failure) -> [Key: Value] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:133:1: note: in extension of 'Dictionary'
extension Dictionary {
^
[64/64] Compiling SpellbookFoundation DictionaryWriter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected ',' separator
_ predicate: (Value) throws(Failure) -> Bool,
^
,
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:561:26: error: expected parameter name followed by ':'
_ predicate: (Value) throws(Failure) -> Bool,
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: consecutive statements on a line must be separated by ';'
) throws(Failure) -> R {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:564:66: error: 'throws' may only occur before '->'
try withoutActuallyEscaping(consume predicate) { (predicate) throws(Failure) -> R in
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:563:9: error: expressions are not allowed at the top level
) throws(Failure) -> R {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: consecutive declarations on a line must be separated by ';'
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:472:108: error: expected declaration
@inlinable public mutating func removeFirst<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: consecutive declarations on a line must be separated by ';'
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:500:98: error: expected declaration
@inlinable public func firstIndex<Failure>(_ predicate: SBPredicate<Element, Failure>) throws(Failure) -> Index? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> RangeSet<Index> {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:515:13: error: expected declaration
) throws(Failure) -> RangeSet<Index> {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> Element? {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:532:13: error: expected declaration
) throws(Failure) -> Element? {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:424:1: note: in extension of 'RangeReplaceableCollection'
extension RangeReplaceableCollection {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Element] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:281:13: error: expected declaration
) throws(Failure) -> [Element] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:254:1: note: in extension of 'Sequence'
extension Sequence {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: consecutive declarations on a line must be separated by ';'
) throws(Failure) -> [Key: Value] {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:147:13: error: expected declaration
) throws(Failure) -> [Key: Value] {
^
/Users/admin/builder/spi-builder-workspace/Sources/SpellbookFoundation/Common/Extensions - Collections.swift:133:1: note: in extension of 'Dictionary'
extension Dictionary {
^
error: fatalError
BUILD FAILURE 5.9 macosSpm