Build Information
Failed to build swift-system, reference master (f51eba
), with Swift 6.1 for Wasm on 29 May 2025 01:42:24 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
77 | public typealias TimeComponents = tm
| `- error: cannot find type 'tm' in scope
78 |
79 | /// The C `timeval` type
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:35:19: error: missing argument label 'time:' in call
33 | @_alwaysEmitIntoClient
34 | init(time: Time) {
35 | self.init(.init(utc: time.rawValue))
| `- error: missing argument label 'time:' in call
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:35:24: error: incorrect argument label in call (have 'utc:', expected 'components:')
33 | @_alwaysEmitIntoClient
34 | init(time: Time) {
35 | self.init(.init(utc: time.rawValue))
| `- error: incorrect argument label in call (have 'utc:', expected 'components:')
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:18: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:34: error: incorrect argument label in call (have 'utc:', expected 'time:')
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: incorrect argument label in call (have 'utc:', expected 'time:')
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:46: error: missing argument label 'components:' in call
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: missing argument label 'components:' in call
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:68:28: error: cannot find type 'clock_t' in scope
66 |
67 | /// The C `clock_t` type
68 | public typealias Clock = clock_t
| `- error: cannot find type 'clock_t' in scope
69 |
70 | /// The C `clockid_t` type
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:144:5: error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
142 |
143 | @usableFromInline
144 | init(_ timeComponents: CInterop.TimeComponents) {
| `- error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
145 | self.init(_unsafeUninitializedCapacity: 26) { buffer in
146 | buffer.withMemoryRebound(to: CChar.self) { cString in
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:80:47: error: cannot find type 'timeval' in scope
78 |
79 | /// The C `timeval` type
80 | public typealias TimeIntervalMicroseconds = timeval
| `- error: cannot find type 'timeval' in scope
81 |
82 | /// The C `timespec` type
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:31:5: error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
29 | public extension TimeInterval.Microseconds {
30 |
31 | init(seconds: Double) {
| `- error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
32 | let (integerValue, decimalValue) = system_modf(seconds)
33 | let microseconds = decimalValue * 1_000_000.0
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:36:27: error: no exact matches in call to initializer
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
| |- error: no exact matches in call to initializer
| |- note: found candidate with type '(Time.Microseconds) -> Time.Microseconds'
| `- note: found candidate with type '(any Decoder) throws -> Time.Microseconds'
37 | )
38 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:36:64: error: type 'CInterop' has no member 'Microseconds'
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
| `- error: type 'CInterop' has no member 'Microseconds'
37 | )
38 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:35:26: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
33 | let microseconds = decimalValue * 1_000_000.0
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
37 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:35:37: error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
33 | let microseconds = decimalValue * 1_000_000.0
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
| `- error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
37 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:46:24: error: cannot assign value of type 'Time.Microseconds' to type 'Double'
44 | let seconds = Double(timeInterval.seconds.rawValue)
45 | let microseconds = Double(timeInterval.microseconds.rawValue) / 1_000_000.0
46 | self = seconds + microseconds
| `- error: cannot assign value of type 'Time.Microseconds' to type 'Double'
47 | }
48 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:102:29: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
100 | @usableFromInline
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
104 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:103:34: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
104 | }
105 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:103:30: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time.Microseconds' conform to '_ExpressibleByBuiltinIntegerLiteral'
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time.Microseconds' conform to '_ExpressibleByBuiltinIntegerLiteral'
104 | }
105 |
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time.Microseconds'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time.Microseconds'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:120:21: error: no exact matches in call to initializer
29 | public extension TimeInterval.Microseconds {
30 |
31 | init(seconds: Double) {
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(seconds:)')
32 | let (integerValue, decimalValue) = system_modf(seconds)
33 | let microseconds = decimalValue * 1_000_000.0
:
118 | retryOnInterrupt: Bool = true
119 | ) throws -> TimeInterval.Microseconds {
120 | return try .init(.getTime(retryOnInterrupt: retryOnInterrupt).get())
| `- error: no exact matches in call to initializer
121 | }
122 |
SystemPackage.TimeInterval.Microseconds.init:3:8: note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
1 | struct TimeInterval {
2 | struct Microseconds {
3 | public init(from decoder: any Decoder) throws }
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
4 | }
5 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:120:27: error: reference to member 'getTime' cannot be resolved without a contextual type
118 | retryOnInterrupt: Bool = true
119 | ) throws -> TimeInterval.Microseconds {
120 | return try .init(.getTime(retryOnInterrupt: retryOnInterrupt).get())
| `- error: reference to member 'getTime' cannot be resolved without a contextual type
121 | }
122 |
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:83:46: error: cannot find type 'timespec' in scope
81 |
82 | /// The C `timespec` type
83 | public typealias TimeIntervalNanoseconds = timespec
| `- error: cannot find type 'timespec' in scope
84 |
85 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:52:26: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
50 | let nanoseconds = decimalValue * 1_000_000_000.0
51 | self.init(
52 | seconds: Time(rawValue: Int(integerValue)),
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
53 | nanoseconds: Time.Nanoseconds(rawValue: Int(nanoseconds))
54 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:52:37: error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
50 | let nanoseconds = decimalValue * 1_000_000_000.0
51 | self.init(
52 | seconds: Time(rawValue: Int(integerValue)),
| `- error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
53 | nanoseconds: Time.Nanoseconds(rawValue: Int(nanoseconds))
54 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:104:29: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
102 | @usableFromInline
103 | init(_ bytes: CInterop.TimeIntervalNanoseconds) {
104 | self.seconds = .init(rawValue: bytes.tv_sec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
105 | self.nanoseconds = .init(rawValue: bytes.tv_nsec)
106 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:93:29: error: cannot find type 'uid_t' in scope
91 | public typealias Nanoseconds = CLong
92 |
93 | public typealias UserID = uid_t
| `- error: cannot find type 'uid_t' in scope
94 |
95 | /// The platform file descriptor set.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Decodable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Decodable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.UserID' does not conform to 'Decodable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Hashable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Hashable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'UserID' to 'Hashable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Encodable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Encodable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.UserID' does not conform to 'Encodable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'RawRepresentable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'RawRepresentable'
13 |
14 | /// The raw C user ID.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Equatable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'UserID' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'UserID' to 'Equatable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'UserID' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'UserID' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'UserID.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'UserID.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'UserID' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'UserID' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'UserID' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'UserID' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'UserID' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'UserID' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'UserID' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'UserID' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'UserID' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'UserID' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(UserID, UserID) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(UserID, UserID) -> Bool'
3 |
[64/71] Compiling SystemPackage TimeIntervalMicroseconds.swift
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:74:27: error: cannot find type 'time_t' in scope
72 |
73 | /// The C `time_t` type
74 | public typealias Time = time_t
| `- error: cannot find type 'time_t' in scope
75 |
76 | /// The C `tm` type
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Decodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Decodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Time' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Hashable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Hashable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Time' to 'Hashable'
15 |
16 | public init(rawValue: CInterop.Time) {
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Encodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Encodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Time' does not conform to 'Encodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'RawRepresentable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'RawRepresentable'
13 |
14 | public var rawValue: CInterop.Time
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Equatable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'Time' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | public var rawValue: CInterop.Time
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Time' to 'Equatable'
15 |
16 | public init(rawValue: CInterop.Time) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'Time' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'Time' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'Time.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Time.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Time' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Time' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Time' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Time' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Time' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Time' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Time' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Time' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Time' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Time' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Time, Time) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Time, Time) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:38:1: error: type 'Time' does not conform to protocol 'ExpressibleByIntegerLiteral'
36 | // MARK: - ExpressibleByIntegerLiteral
37 |
38 | extension Time: ExpressibleByIntegerLiteral {
| |- error: type 'Time' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
39 |
40 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Decodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Decodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Time' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:28:17: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
26 |
27 | static var min: Time {
28 | return .init(rawValue: .min)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
29 | }
30 |
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:28:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
26 |
27 | static var min: Time {
28 | return .init(rawValue: .min)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
29 | }
30 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:32:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
30 |
31 | static var max: Time {
32 | return .init(rawValue: .max)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
33 | }
34 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:32:17: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
30 |
31 | static var max: Time {
32 | return .init(rawValue: .max)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
33 | }
34 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:41:18: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
39 |
40 | public init(integerLiteral value: RawValue) {
41 | self.init(rawValue: value)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
42 | }
43 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:18:40: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
16 | public var rawValue: CInterop.Microseconds
17 |
18 | public init(rawValue: CInterop.Microseconds) {
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
19 | self.rawValue = rawValue
20 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:16:39: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
15 |
16 | public var rawValue: CInterop.Microseconds
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Time.swift:62:17: error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
60 | public extension Time {
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
| `- error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
64 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:63:21: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
64 | }
65 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:63:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
64 | }
65 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:67:21: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
65 |
66 | static func + (lhs: Time, rhs: Time) -> Time {
67 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
68 | }
69 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:67:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
65 |
66 | static func + (lhs: Time, rhs: Time) -> Time {
67 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
68 | }
69 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:77:37: error: cannot find type 'tm' in scope
75 |
76 | /// The C `tm` type
77 | public typealias TimeComponents = tm
| `- error: cannot find type 'tm' in scope
78 |
79 | /// The C `timeval` type
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:35:19: error: missing argument label 'time:' in call
33 | @_alwaysEmitIntoClient
34 | init(time: Time) {
35 | self.init(.init(utc: time.rawValue))
| `- error: missing argument label 'time:' in call
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:35:24: error: incorrect argument label in call (have 'utc:', expected 'components:')
33 | @_alwaysEmitIntoClient
34 | init(time: Time) {
35 | self.init(.init(utc: time.rawValue))
| `- error: incorrect argument label in call (have 'utc:', expected 'components:')
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:18: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:34: error: incorrect argument label in call (have 'utc:', expected 'time:')
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: incorrect argument label in call (have 'utc:', expected 'time:')
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:46: error: missing argument label 'components:' in call
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: missing argument label 'components:' in call
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:68:28: error: cannot find type 'clock_t' in scope
66 |
67 | /// The C `clock_t` type
68 | public typealias Clock = clock_t
| `- error: cannot find type 'clock_t' in scope
69 |
70 | /// The C `clockid_t` type
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:144:5: error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
142 |
143 | @usableFromInline
144 | init(_ timeComponents: CInterop.TimeComponents) {
| `- error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
145 | self.init(_unsafeUninitializedCapacity: 26) { buffer in
146 | buffer.withMemoryRebound(to: CChar.self) { cString in
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:80:47: error: cannot find type 'timeval' in scope
78 |
79 | /// The C `timeval` type
80 | public typealias TimeIntervalMicroseconds = timeval
| `- error: cannot find type 'timeval' in scope
81 |
82 | /// The C `timespec` type
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:31:5: error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
29 | public extension TimeInterval.Microseconds {
30 |
31 | init(seconds: Double) {
| `- error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
32 | let (integerValue, decimalValue) = system_modf(seconds)
33 | let microseconds = decimalValue * 1_000_000.0
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:36:27: error: no exact matches in call to initializer
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
| |- error: no exact matches in call to initializer
| |- note: found candidate with type '(Time.Microseconds) -> Time.Microseconds'
| `- note: found candidate with type '(any Decoder) throws -> Time.Microseconds'
37 | )
38 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:36:64: error: type 'CInterop' has no member 'Microseconds'
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
| `- error: type 'CInterop' has no member 'Microseconds'
37 | )
38 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:35:26: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
33 | let microseconds = decimalValue * 1_000_000.0
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
37 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:35:37: error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
33 | let microseconds = decimalValue * 1_000_000.0
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
| `- error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
37 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:46:24: error: cannot assign value of type 'Time.Microseconds' to type 'Double'
44 | let seconds = Double(timeInterval.seconds.rawValue)
45 | let microseconds = Double(timeInterval.microseconds.rawValue) / 1_000_000.0
46 | self = seconds + microseconds
| `- error: cannot assign value of type 'Time.Microseconds' to type 'Double'
47 | }
48 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:102:29: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
100 | @usableFromInline
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
104 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:103:34: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
104 | }
105 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:103:30: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time.Microseconds' conform to '_ExpressibleByBuiltinIntegerLiteral'
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time.Microseconds' conform to '_ExpressibleByBuiltinIntegerLiteral'
104 | }
105 |
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time.Microseconds'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time.Microseconds'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:120:21: error: no exact matches in call to initializer
29 | public extension TimeInterval.Microseconds {
30 |
31 | init(seconds: Double) {
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(seconds:)')
32 | let (integerValue, decimalValue) = system_modf(seconds)
33 | let microseconds = decimalValue * 1_000_000.0
:
118 | retryOnInterrupt: Bool = true
119 | ) throws -> TimeInterval.Microseconds {
120 | return try .init(.getTime(retryOnInterrupt: retryOnInterrupt).get())
| `- error: no exact matches in call to initializer
121 | }
122 |
SystemPackage.TimeInterval.Microseconds.init:3:8: note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
1 | struct TimeInterval {
2 | struct Microseconds {
3 | public init(from decoder: any Decoder) throws }
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
4 | }
5 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:120:27: error: reference to member 'getTime' cannot be resolved without a contextual type
118 | retryOnInterrupt: Bool = true
119 | ) throws -> TimeInterval.Microseconds {
120 | return try .init(.getTime(retryOnInterrupt: retryOnInterrupt).get())
| `- error: reference to member 'getTime' cannot be resolved without a contextual type
121 | }
122 |
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:83:46: error: cannot find type 'timespec' in scope
81 |
82 | /// The C `timespec` type
83 | public typealias TimeIntervalNanoseconds = timespec
| `- error: cannot find type 'timespec' in scope
84 |
85 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:52:26: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
50 | let nanoseconds = decimalValue * 1_000_000_000.0
51 | self.init(
52 | seconds: Time(rawValue: Int(integerValue)),
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
53 | nanoseconds: Time.Nanoseconds(rawValue: Int(nanoseconds))
54 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:52:37: error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
50 | let nanoseconds = decimalValue * 1_000_000_000.0
51 | self.init(
52 | seconds: Time(rawValue: Int(integerValue)),
| `- error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
53 | nanoseconds: Time.Nanoseconds(rawValue: Int(nanoseconds))
54 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:104:29: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
102 | @usableFromInline
103 | init(_ bytes: CInterop.TimeIntervalNanoseconds) {
104 | self.seconds = .init(rawValue: bytes.tv_sec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
105 | self.nanoseconds = .init(rawValue: bytes.tv_nsec)
106 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:93:29: error: cannot find type 'uid_t' in scope
91 | public typealias Nanoseconds = CLong
92 |
93 | public typealias UserID = uid_t
| `- error: cannot find type 'uid_t' in scope
94 |
95 | /// The platform file descriptor set.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Decodable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Decodable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.UserID' does not conform to 'Decodable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Hashable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Hashable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'UserID' to 'Hashable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Encodable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Encodable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.UserID' does not conform to 'Encodable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'RawRepresentable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'RawRepresentable'
13 |
14 | /// The raw C user ID.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Equatable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'UserID' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'UserID' to 'Equatable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'UserID' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'UserID' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'UserID.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'UserID.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'UserID' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'UserID' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'UserID' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'UserID' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'UserID' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'UserID' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'UserID' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'UserID' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'UserID' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'UserID' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(UserID, UserID) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(UserID, UserID) -> Bool'
3 |
[65/71] Compiling SystemPackage TimeIntervalNanoseconds.swift
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:74:27: error: cannot find type 'time_t' in scope
72 |
73 | /// The C `time_t` type
74 | public typealias Time = time_t
| `- error: cannot find type 'time_t' in scope
75 |
76 | /// The C `tm` type
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Decodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Decodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Time' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Hashable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Hashable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Time' to 'Hashable'
15 |
16 | public init(rawValue: CInterop.Time) {
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Encodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Encodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Time' does not conform to 'Encodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'RawRepresentable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'RawRepresentable'
13 |
14 | public var rawValue: CInterop.Time
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Equatable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'Time' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | public var rawValue: CInterop.Time
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Time' to 'Equatable'
15 |
16 | public init(rawValue: CInterop.Time) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'Time' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'Time' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'Time.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Time.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Time' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Time' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Time' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Time' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Time' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Time' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Time' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Time' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Time' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Time' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Time, Time) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Time, Time) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:38:1: error: type 'Time' does not conform to protocol 'ExpressibleByIntegerLiteral'
36 | // MARK: - ExpressibleByIntegerLiteral
37 |
38 | extension Time: ExpressibleByIntegerLiteral {
| |- error: type 'Time' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
39 |
40 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Decodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Decodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Time' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:28:17: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
26 |
27 | static var min: Time {
28 | return .init(rawValue: .min)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
29 | }
30 |
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:28:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
26 |
27 | static var min: Time {
28 | return .init(rawValue: .min)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
29 | }
30 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:32:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
30 |
31 | static var max: Time {
32 | return .init(rawValue: .max)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
33 | }
34 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:32:17: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
30 |
31 | static var max: Time {
32 | return .init(rawValue: .max)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
33 | }
34 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:41:18: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
39 |
40 | public init(integerLiteral value: RawValue) {
41 | self.init(rawValue: value)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
42 | }
43 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:18:40: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
16 | public var rawValue: CInterop.Microseconds
17 |
18 | public init(rawValue: CInterop.Microseconds) {
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
19 | self.rawValue = rawValue
20 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:16:39: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
15 |
16 | public var rawValue: CInterop.Microseconds
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Time.swift:62:17: error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
60 | public extension Time {
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
| `- error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
64 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:63:21: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
64 | }
65 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:63:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
64 | }
65 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:67:21: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
65 |
66 | static func + (lhs: Time, rhs: Time) -> Time {
67 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
68 | }
69 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:67:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
65 |
66 | static func + (lhs: Time, rhs: Time) -> Time {
67 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
68 | }
69 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:77:37: error: cannot find type 'tm' in scope
75 |
76 | /// The C `tm` type
77 | public typealias TimeComponents = tm
| `- error: cannot find type 'tm' in scope
78 |
79 | /// The C `timeval` type
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:35:19: error: missing argument label 'time:' in call
33 | @_alwaysEmitIntoClient
34 | init(time: Time) {
35 | self.init(.init(utc: time.rawValue))
| `- error: missing argument label 'time:' in call
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:35:24: error: incorrect argument label in call (have 'utc:', expected 'components:')
33 | @_alwaysEmitIntoClient
34 | init(time: Time) {
35 | self.init(.init(utc: time.rawValue))
| `- error: incorrect argument label in call (have 'utc:', expected 'components:')
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:18: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:34: error: incorrect argument label in call (have 'utc:', expected 'time:')
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: incorrect argument label in call (have 'utc:', expected 'time:')
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:46: error: missing argument label 'components:' in call
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: missing argument label 'components:' in call
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:68:28: error: cannot find type 'clock_t' in scope
66 |
67 | /// The C `clock_t` type
68 | public typealias Clock = clock_t
| `- error: cannot find type 'clock_t' in scope
69 |
70 | /// The C `clockid_t` type
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:144:5: error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
142 |
143 | @usableFromInline
144 | init(_ timeComponents: CInterop.TimeComponents) {
| `- error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
145 | self.init(_unsafeUninitializedCapacity: 26) { buffer in
146 | buffer.withMemoryRebound(to: CChar.self) { cString in
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:80:47: error: cannot find type 'timeval' in scope
78 |
79 | /// The C `timeval` type
80 | public typealias TimeIntervalMicroseconds = timeval
| `- error: cannot find type 'timeval' in scope
81 |
82 | /// The C `timespec` type
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:31:5: error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
29 | public extension TimeInterval.Microseconds {
30 |
31 | init(seconds: Double) {
| `- error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
32 | let (integerValue, decimalValue) = system_modf(seconds)
33 | let microseconds = decimalValue * 1_000_000.0
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:36:27: error: no exact matches in call to initializer
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
| |- error: no exact matches in call to initializer
| |- note: found candidate with type '(Time.Microseconds) -> Time.Microseconds'
| `- note: found candidate with type '(any Decoder) throws -> Time.Microseconds'
37 | )
38 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:36:64: error: type 'CInterop' has no member 'Microseconds'
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
| `- error: type 'CInterop' has no member 'Microseconds'
37 | )
38 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:35:26: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
33 | let microseconds = decimalValue * 1_000_000.0
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
37 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:35:37: error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
33 | let microseconds = decimalValue * 1_000_000.0
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
| `- error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
37 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:46:24: error: cannot assign value of type 'Time.Microseconds' to type 'Double'
44 | let seconds = Double(timeInterval.seconds.rawValue)
45 | let microseconds = Double(timeInterval.microseconds.rawValue) / 1_000_000.0
46 | self = seconds + microseconds
| `- error: cannot assign value of type 'Time.Microseconds' to type 'Double'
47 | }
48 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:102:29: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
100 | @usableFromInline
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
104 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:103:34: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
104 | }
105 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:103:30: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time.Microseconds' conform to '_ExpressibleByBuiltinIntegerLiteral'
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time.Microseconds' conform to '_ExpressibleByBuiltinIntegerLiteral'
104 | }
105 |
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time.Microseconds'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time.Microseconds'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:120:21: error: no exact matches in call to initializer
29 | public extension TimeInterval.Microseconds {
30 |
31 | init(seconds: Double) {
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(seconds:)')
32 | let (integerValue, decimalValue) = system_modf(seconds)
33 | let microseconds = decimalValue * 1_000_000.0
:
118 | retryOnInterrupt: Bool = true
119 | ) throws -> TimeInterval.Microseconds {
120 | return try .init(.getTime(retryOnInterrupt: retryOnInterrupt).get())
| `- error: no exact matches in call to initializer
121 | }
122 |
SystemPackage.TimeInterval.Microseconds.init:3:8: note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
1 | struct TimeInterval {
2 | struct Microseconds {
3 | public init(from decoder: any Decoder) throws }
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
4 | }
5 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:120:27: error: reference to member 'getTime' cannot be resolved without a contextual type
118 | retryOnInterrupt: Bool = true
119 | ) throws -> TimeInterval.Microseconds {
120 | return try .init(.getTime(retryOnInterrupt: retryOnInterrupt).get())
| `- error: reference to member 'getTime' cannot be resolved without a contextual type
121 | }
122 |
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:83:46: error: cannot find type 'timespec' in scope
81 |
82 | /// The C `timespec` type
83 | public typealias TimeIntervalNanoseconds = timespec
| `- error: cannot find type 'timespec' in scope
84 |
85 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:52:26: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
50 | let nanoseconds = decimalValue * 1_000_000_000.0
51 | self.init(
52 | seconds: Time(rawValue: Int(integerValue)),
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
53 | nanoseconds: Time.Nanoseconds(rawValue: Int(nanoseconds))
54 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:52:37: error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
50 | let nanoseconds = decimalValue * 1_000_000_000.0
51 | self.init(
52 | seconds: Time(rawValue: Int(integerValue)),
| `- error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
53 | nanoseconds: Time.Nanoseconds(rawValue: Int(nanoseconds))
54 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:104:29: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
102 | @usableFromInline
103 | init(_ bytes: CInterop.TimeIntervalNanoseconds) {
104 | self.seconds = .init(rawValue: bytes.tv_sec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
105 | self.nanoseconds = .init(rawValue: bytes.tv_nsec)
106 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:93:29: error: cannot find type 'uid_t' in scope
91 | public typealias Nanoseconds = CLong
92 |
93 | public typealias UserID = uid_t
| `- error: cannot find type 'uid_t' in scope
94 |
95 | /// The platform file descriptor set.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Decodable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Decodable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.UserID' does not conform to 'Decodable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Hashable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Hashable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'UserID' to 'Hashable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Encodable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Encodable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.UserID' does not conform to 'Encodable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'RawRepresentable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'RawRepresentable'
13 |
14 | /// The raw C user ID.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Equatable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'UserID' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'UserID' to 'Equatable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'UserID' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'UserID' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'UserID.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'UserID.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'UserID' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'UserID' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'UserID' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'UserID' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'UserID' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'UserID' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'UserID' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'UserID' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'UserID' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'UserID' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(UserID, UserID) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(UserID, UserID) -> Bool'
3 |
[66/71] Compiling SystemPackage UserID.swift
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:74:27: error: cannot find type 'time_t' in scope
72 |
73 | /// The C `time_t` type
74 | public typealias Time = time_t
| `- error: cannot find type 'time_t' in scope
75 |
76 | /// The C `tm` type
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Decodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Decodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Time' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Hashable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Hashable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Time' to 'Hashable'
15 |
16 | public init(rawValue: CInterop.Time) {
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Encodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Encodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Time' does not conform to 'Encodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'RawRepresentable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'RawRepresentable'
13 |
14 | public var rawValue: CInterop.Time
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Equatable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'Time' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | public var rawValue: CInterop.Time
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Time' to 'Equatable'
15 |
16 | public init(rawValue: CInterop.Time) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'Time' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'Time' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'Time.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Time.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Time' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Time' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Time' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Time' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Time' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Time' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Time' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Time' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Time' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Time' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Time, Time) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Time, Time) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:38:1: error: type 'Time' does not conform to protocol 'ExpressibleByIntegerLiteral'
36 | // MARK: - ExpressibleByIntegerLiteral
37 |
38 | extension Time: ExpressibleByIntegerLiteral {
| |- error: type 'Time' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
39 |
40 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Decodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Decodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Time' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:28:17: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
26 |
27 | static var min: Time {
28 | return .init(rawValue: .min)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
29 | }
30 |
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:28:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
26 |
27 | static var min: Time {
28 | return .init(rawValue: .min)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
29 | }
30 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:32:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
30 |
31 | static var max: Time {
32 | return .init(rawValue: .max)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
33 | }
34 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:32:17: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
30 |
31 | static var max: Time {
32 | return .init(rawValue: .max)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
33 | }
34 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:41:18: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
39 |
40 | public init(integerLiteral value: RawValue) {
41 | self.init(rawValue: value)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
42 | }
43 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:18:40: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
16 | public var rawValue: CInterop.Microseconds
17 |
18 | public init(rawValue: CInterop.Microseconds) {
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
19 | self.rawValue = rawValue
20 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:16:39: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
15 |
16 | public var rawValue: CInterop.Microseconds
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Time.swift:62:17: error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
60 | public extension Time {
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
| `- error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
64 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:63:21: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
64 | }
65 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:63:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
64 | }
65 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:67:21: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
65 |
66 | static func + (lhs: Time, rhs: Time) -> Time {
67 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
68 | }
69 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:67:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
65 |
66 | static func + (lhs: Time, rhs: Time) -> Time {
67 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
68 | }
69 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:77:37: error: cannot find type 'tm' in scope
75 |
76 | /// The C `tm` type
77 | public typealias TimeComponents = tm
| `- error: cannot find type 'tm' in scope
78 |
79 | /// The C `timeval` type
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:35:19: error: missing argument label 'time:' in call
33 | @_alwaysEmitIntoClient
34 | init(time: Time) {
35 | self.init(.init(utc: time.rawValue))
| `- error: missing argument label 'time:' in call
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:35:24: error: incorrect argument label in call (have 'utc:', expected 'components:')
33 | @_alwaysEmitIntoClient
34 | init(time: Time) {
35 | self.init(.init(utc: time.rawValue))
| `- error: incorrect argument label in call (have 'utc:', expected 'components:')
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:18: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:34: error: incorrect argument label in call (have 'utc:', expected 'time:')
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: incorrect argument label in call (have 'utc:', expected 'time:')
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:46: error: missing argument label 'components:' in call
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: missing argument label 'components:' in call
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:68:28: error: cannot find type 'clock_t' in scope
66 |
67 | /// The C `clock_t` type
68 | public typealias Clock = clock_t
| `- error: cannot find type 'clock_t' in scope
69 |
70 | /// The C `clockid_t` type
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:144:5: error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
142 |
143 | @usableFromInline
144 | init(_ timeComponents: CInterop.TimeComponents) {
| `- error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
145 | self.init(_unsafeUninitializedCapacity: 26) { buffer in
146 | buffer.withMemoryRebound(to: CChar.self) { cString in
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:80:47: error: cannot find type 'timeval' in scope
78 |
79 | /// The C `timeval` type
80 | public typealias TimeIntervalMicroseconds = timeval
| `- error: cannot find type 'timeval' in scope
81 |
82 | /// The C `timespec` type
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:31:5: error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
29 | public extension TimeInterval.Microseconds {
30 |
31 | init(seconds: Double) {
| `- error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
32 | let (integerValue, decimalValue) = system_modf(seconds)
33 | let microseconds = decimalValue * 1_000_000.0
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:36:27: error: no exact matches in call to initializer
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
| |- error: no exact matches in call to initializer
| |- note: found candidate with type '(Time.Microseconds) -> Time.Microseconds'
| `- note: found candidate with type '(any Decoder) throws -> Time.Microseconds'
37 | )
38 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:36:64: error: type 'CInterop' has no member 'Microseconds'
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
| `- error: type 'CInterop' has no member 'Microseconds'
37 | )
38 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:35:26: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
33 | let microseconds = decimalValue * 1_000_000.0
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
37 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:35:37: error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
33 | let microseconds = decimalValue * 1_000_000.0
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
| `- error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
37 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:46:24: error: cannot assign value of type 'Time.Microseconds' to type 'Double'
44 | let seconds = Double(timeInterval.seconds.rawValue)
45 | let microseconds = Double(timeInterval.microseconds.rawValue) / 1_000_000.0
46 | self = seconds + microseconds
| `- error: cannot assign value of type 'Time.Microseconds' to type 'Double'
47 | }
48 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:102:29: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
100 | @usableFromInline
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
104 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:103:34: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
104 | }
105 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:103:30: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time.Microseconds' conform to '_ExpressibleByBuiltinIntegerLiteral'
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time.Microseconds' conform to '_ExpressibleByBuiltinIntegerLiteral'
104 | }
105 |
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time.Microseconds'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time.Microseconds'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:120:21: error: no exact matches in call to initializer
29 | public extension TimeInterval.Microseconds {
30 |
31 | init(seconds: Double) {
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(seconds:)')
32 | let (integerValue, decimalValue) = system_modf(seconds)
33 | let microseconds = decimalValue * 1_000_000.0
:
118 | retryOnInterrupt: Bool = true
119 | ) throws -> TimeInterval.Microseconds {
120 | return try .init(.getTime(retryOnInterrupt: retryOnInterrupt).get())
| `- error: no exact matches in call to initializer
121 | }
122 |
SystemPackage.TimeInterval.Microseconds.init:3:8: note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
1 | struct TimeInterval {
2 | struct Microseconds {
3 | public init(from decoder: any Decoder) throws }
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
4 | }
5 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:120:27: error: reference to member 'getTime' cannot be resolved without a contextual type
118 | retryOnInterrupt: Bool = true
119 | ) throws -> TimeInterval.Microseconds {
120 | return try .init(.getTime(retryOnInterrupt: retryOnInterrupt).get())
| `- error: reference to member 'getTime' cannot be resolved without a contextual type
121 | }
122 |
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:83:46: error: cannot find type 'timespec' in scope
81 |
82 | /// The C `timespec` type
83 | public typealias TimeIntervalNanoseconds = timespec
| `- error: cannot find type 'timespec' in scope
84 |
85 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:52:26: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
50 | let nanoseconds = decimalValue * 1_000_000_000.0
51 | self.init(
52 | seconds: Time(rawValue: Int(integerValue)),
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
53 | nanoseconds: Time.Nanoseconds(rawValue: Int(nanoseconds))
54 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:52:37: error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
50 | let nanoseconds = decimalValue * 1_000_000_000.0
51 | self.init(
52 | seconds: Time(rawValue: Int(integerValue)),
| `- error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
53 | nanoseconds: Time.Nanoseconds(rawValue: Int(nanoseconds))
54 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:104:29: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
102 | @usableFromInline
103 | init(_ bytes: CInterop.TimeIntervalNanoseconds) {
104 | self.seconds = .init(rawValue: bytes.tv_sec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
105 | self.nanoseconds = .init(rawValue: bytes.tv_nsec)
106 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:93:29: error: cannot find type 'uid_t' in scope
91 | public typealias Nanoseconds = CLong
92 |
93 | public typealias UserID = uid_t
| `- error: cannot find type 'uid_t' in scope
94 |
95 | /// The platform file descriptor set.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Decodable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Decodable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.UserID' does not conform to 'Decodable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Hashable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Hashable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'UserID' to 'Hashable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Encodable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Encodable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.UserID' does not conform to 'Encodable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'RawRepresentable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'RawRepresentable'
13 |
14 | /// The raw C user ID.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Equatable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'UserID' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'UserID' to 'Equatable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'UserID' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'UserID' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'UserID.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'UserID.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'UserID' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'UserID' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'UserID' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'UserID' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'UserID' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'UserID' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'UserID' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'UserID' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'UserID' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'UserID' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(UserID, UserID) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(UserID, UserID) -> Bool'
3 |
[67/71] Compiling SystemPackage Util.swift
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:74:27: error: cannot find type 'time_t' in scope
72 |
73 | /// The C `time_t` type
74 | public typealias Time = time_t
| `- error: cannot find type 'time_t' in scope
75 |
76 | /// The C `tm` type
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Decodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Decodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Time' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Hashable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Hashable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Time' to 'Hashable'
15 |
16 | public init(rawValue: CInterop.Time) {
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Encodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Encodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Time' does not conform to 'Encodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'RawRepresentable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'RawRepresentable'
13 |
14 | public var rawValue: CInterop.Time
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Equatable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'Time' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | public var rawValue: CInterop.Time
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Time' to 'Equatable'
15 |
16 | public init(rawValue: CInterop.Time) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'Time' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'Time' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'Time.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Time.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Time' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Time' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Time' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Time' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Time' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Time' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Time' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Time' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Time' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Time' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Time, Time) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Time, Time) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:38:1: error: type 'Time' does not conform to protocol 'ExpressibleByIntegerLiteral'
36 | // MARK: - ExpressibleByIntegerLiteral
37 |
38 | extension Time: ExpressibleByIntegerLiteral {
| |- error: type 'Time' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
39 |
40 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Decodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Decodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Time' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:28:17: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
26 |
27 | static var min: Time {
28 | return .init(rawValue: .min)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
29 | }
30 |
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:28:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
26 |
27 | static var min: Time {
28 | return .init(rawValue: .min)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
29 | }
30 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:32:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
30 |
31 | static var max: Time {
32 | return .init(rawValue: .max)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
33 | }
34 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:32:17: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
30 |
31 | static var max: Time {
32 | return .init(rawValue: .max)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
33 | }
34 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:41:18: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
39 |
40 | public init(integerLiteral value: RawValue) {
41 | self.init(rawValue: value)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
42 | }
43 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:18:40: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
16 | public var rawValue: CInterop.Microseconds
17 |
18 | public init(rawValue: CInterop.Microseconds) {
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
19 | self.rawValue = rawValue
20 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:16:39: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
15 |
16 | public var rawValue: CInterop.Microseconds
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Time.swift:62:17: error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
60 | public extension Time {
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
| `- error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
64 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:63:21: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
64 | }
65 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:63:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
64 | }
65 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:67:21: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
65 |
66 | static func + (lhs: Time, rhs: Time) -> Time {
67 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
68 | }
69 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:67:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
65 |
66 | static func + (lhs: Time, rhs: Time) -> Time {
67 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
68 | }
69 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:77:37: error: cannot find type 'tm' in scope
75 |
76 | /// The C `tm` type
77 | public typealias TimeComponents = tm
| `- error: cannot find type 'tm' in scope
78 |
79 | /// The C `timeval` type
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:35:19: error: missing argument label 'time:' in call
33 | @_alwaysEmitIntoClient
34 | init(time: Time) {
35 | self.init(.init(utc: time.rawValue))
| `- error: missing argument label 'time:' in call
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:35:24: error: incorrect argument label in call (have 'utc:', expected 'components:')
33 | @_alwaysEmitIntoClient
34 | init(time: Time) {
35 | self.init(.init(utc: time.rawValue))
| `- error: incorrect argument label in call (have 'utc:', expected 'components:')
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:18: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:34: error: incorrect argument label in call (have 'utc:', expected 'time:')
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: incorrect argument label in call (have 'utc:', expected 'time:')
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:46: error: missing argument label 'components:' in call
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: missing argument label 'components:' in call
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:68:28: error: cannot find type 'clock_t' in scope
66 |
67 | /// The C `clock_t` type
68 | public typealias Clock = clock_t
| `- error: cannot find type 'clock_t' in scope
69 |
70 | /// The C `clockid_t` type
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:144:5: error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
142 |
143 | @usableFromInline
144 | init(_ timeComponents: CInterop.TimeComponents) {
| `- error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
145 | self.init(_unsafeUninitializedCapacity: 26) { buffer in
146 | buffer.withMemoryRebound(to: CChar.self) { cString in
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:80:47: error: cannot find type 'timeval' in scope
78 |
79 | /// The C `timeval` type
80 | public typealias TimeIntervalMicroseconds = timeval
| `- error: cannot find type 'timeval' in scope
81 |
82 | /// The C `timespec` type
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:31:5: error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
29 | public extension TimeInterval.Microseconds {
30 |
31 | init(seconds: Double) {
| `- error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
32 | let (integerValue, decimalValue) = system_modf(seconds)
33 | let microseconds = decimalValue * 1_000_000.0
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:36:27: error: no exact matches in call to initializer
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
| |- error: no exact matches in call to initializer
| |- note: found candidate with type '(Time.Microseconds) -> Time.Microseconds'
| `- note: found candidate with type '(any Decoder) throws -> Time.Microseconds'
37 | )
38 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:36:64: error: type 'CInterop' has no member 'Microseconds'
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
| `- error: type 'CInterop' has no member 'Microseconds'
37 | )
38 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:35:26: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
33 | let microseconds = decimalValue * 1_000_000.0
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
37 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:35:37: error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
33 | let microseconds = decimalValue * 1_000_000.0
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
| `- error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
37 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:46:24: error: cannot assign value of type 'Time.Microseconds' to type 'Double'
44 | let seconds = Double(timeInterval.seconds.rawValue)
45 | let microseconds = Double(timeInterval.microseconds.rawValue) / 1_000_000.0
46 | self = seconds + microseconds
| `- error: cannot assign value of type 'Time.Microseconds' to type 'Double'
47 | }
48 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:102:29: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
100 | @usableFromInline
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
104 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:103:34: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
104 | }
105 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:103:30: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time.Microseconds' conform to '_ExpressibleByBuiltinIntegerLiteral'
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time.Microseconds' conform to '_ExpressibleByBuiltinIntegerLiteral'
104 | }
105 |
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time.Microseconds'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time.Microseconds'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:120:21: error: no exact matches in call to initializer
29 | public extension TimeInterval.Microseconds {
30 |
31 | init(seconds: Double) {
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(seconds:)')
32 | let (integerValue, decimalValue) = system_modf(seconds)
33 | let microseconds = decimalValue * 1_000_000.0
:
118 | retryOnInterrupt: Bool = true
119 | ) throws -> TimeInterval.Microseconds {
120 | return try .init(.getTime(retryOnInterrupt: retryOnInterrupt).get())
| `- error: no exact matches in call to initializer
121 | }
122 |
SystemPackage.TimeInterval.Microseconds.init:3:8: note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
1 | struct TimeInterval {
2 | struct Microseconds {
3 | public init(from decoder: any Decoder) throws }
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
4 | }
5 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:120:27: error: reference to member 'getTime' cannot be resolved without a contextual type
118 | retryOnInterrupt: Bool = true
119 | ) throws -> TimeInterval.Microseconds {
120 | return try .init(.getTime(retryOnInterrupt: retryOnInterrupt).get())
| `- error: reference to member 'getTime' cannot be resolved without a contextual type
121 | }
122 |
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:83:46: error: cannot find type 'timespec' in scope
81 |
82 | /// The C `timespec` type
83 | public typealias TimeIntervalNanoseconds = timespec
| `- error: cannot find type 'timespec' in scope
84 |
85 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:52:26: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
50 | let nanoseconds = decimalValue * 1_000_000_000.0
51 | self.init(
52 | seconds: Time(rawValue: Int(integerValue)),
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
53 | nanoseconds: Time.Nanoseconds(rawValue: Int(nanoseconds))
54 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:52:37: error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
50 | let nanoseconds = decimalValue * 1_000_000_000.0
51 | self.init(
52 | seconds: Time(rawValue: Int(integerValue)),
| `- error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
53 | nanoseconds: Time.Nanoseconds(rawValue: Int(nanoseconds))
54 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:104:29: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
102 | @usableFromInline
103 | init(_ bytes: CInterop.TimeIntervalNanoseconds) {
104 | self.seconds = .init(rawValue: bytes.tv_sec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
105 | self.nanoseconds = .init(rawValue: bytes.tv_nsec)
106 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:93:29: error: cannot find type 'uid_t' in scope
91 | public typealias Nanoseconds = CLong
92 |
93 | public typealias UserID = uid_t
| `- error: cannot find type 'uid_t' in scope
94 |
95 | /// The platform file descriptor set.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Decodable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Decodable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.UserID' does not conform to 'Decodable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Hashable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Hashable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'UserID' to 'Hashable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Encodable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Encodable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.UserID' does not conform to 'Encodable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'RawRepresentable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'RawRepresentable'
13 |
14 | /// The raw C user ID.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Equatable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'UserID' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'UserID' to 'Equatable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'UserID' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'UserID' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'UserID.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'UserID.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'UserID' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'UserID' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'UserID' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'UserID' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'UserID' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'UserID' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'UserID' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'UserID' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'UserID' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'UserID' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(UserID, UserID) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(UserID, UserID) -> Bool'
3 |
[68/71] Compiling SystemPackage UtilConsumers.swift
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:74:27: error: cannot find type 'time_t' in scope
72 |
73 | /// The C `time_t` type
74 | public typealias Time = time_t
| `- error: cannot find type 'time_t' in scope
75 |
76 | /// The C `tm` type
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Decodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Decodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Time' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Hashable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Hashable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Time' to 'Hashable'
15 |
16 | public init(rawValue: CInterop.Time) {
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Encodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Encodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Time' does not conform to 'Encodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'RawRepresentable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'RawRepresentable'
13 |
14 | public var rawValue: CInterop.Time
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Equatable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'Time' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | public var rawValue: CInterop.Time
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Time' to 'Equatable'
15 |
16 | public init(rawValue: CInterop.Time) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'Time' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'Time' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'Time.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Time.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Time' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Time' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Time' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Time' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Time' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Time' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Time' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Time' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Time' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Time' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Time' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Time, Time) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Time, Time) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:38:1: error: type 'Time' does not conform to protocol 'ExpressibleByIntegerLiteral'
36 | // MARK: - ExpressibleByIntegerLiteral
37 |
38 | extension Time: ExpressibleByIntegerLiteral {
| |- error: type 'Time' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
39 |
40 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:12:15: error: type 'Time' does not conform to protocol 'Decodable'
10 | /// POSIX Time
11 | @frozen
12 | public struct Time: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time' does not conform to protocol 'Decodable'
13 |
14 | public var rawValue: CInterop.Time
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Time' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Time) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:28:17: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
26 |
27 | static var min: Time {
28 | return .init(rawValue: .min)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
29 | }
30 |
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:28:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
26 |
27 | static var min: Time {
28 | return .init(rawValue: .min)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
29 | }
30 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:32:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
30 |
31 | static var max: Time {
32 | return .init(rawValue: .max)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
33 | }
34 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:32:17: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
30 |
31 | static var max: Time {
32 | return .init(rawValue: .max)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time' conform to '_ExpressibleByBuiltinIntegerLiteral'
33 | }
34 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:41:18: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
39 |
40 | public init(integerLiteral value: RawValue) {
41 | self.init(rawValue: value)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
42 | }
43 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:18:40: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
16 | public var rawValue: CInterop.Microseconds
17 |
18 | public init(rawValue: CInterop.Microseconds) {
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
19 | self.rawValue = rawValue
20 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:16:39: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
15 |
16 | public var rawValue: CInterop.Microseconds
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Time.swift:62:17: error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
60 | public extension Time {
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
| `- error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
64 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:63:21: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
64 | }
65 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:63:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
61 |
62 | static func - (lhs: Time, rhs: Time) -> Time {
63 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
64 | }
65 |
/host/spi-builder-workspace/Sources/System/Time/Time.swift:67:21: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
65 |
66 | static func + (lhs: Time, rhs: Time) -> Time {
67 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
68 | }
69 | }
/host/spi-builder-workspace/Sources/System/Time/Time.swift:67:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
65 |
66 | static func + (lhs: Time, rhs: Time) -> Time {
67 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'TimeComponents'
68 | }
69 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:77:37: error: cannot find type 'tm' in scope
75 |
76 | /// The C `tm` type
77 | public typealias TimeComponents = tm
| `- error: cannot find type 'tm' in scope
78 |
79 | /// The C `timeval` type
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:35:19: error: missing argument label 'time:' in call
33 | @_alwaysEmitIntoClient
34 | init(time: Time) {
35 | self.init(.init(utc: time.rawValue))
| `- error: missing argument label 'time:' in call
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:35:24: error: incorrect argument label in call (have 'utc:', expected 'components:')
33 | @_alwaysEmitIntoClient
34 | init(time: Time) {
35 | self.init(.init(utc: time.rawValue))
| `- error: incorrect argument label in call (have 'utc:', expected 'components:')
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:18: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:34: error: incorrect argument label in call (have 'utc:', expected 'time:')
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: incorrect argument label in call (have 'utc:', expected 'time:')
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:43:46: error: missing argument label 'components:' in call
41 | @_alwaysEmitIntoClient
42 | init(components: TimeComponents) {
43 | self.init(rawValue: .init(utc: .init(components)))
| `- error: missing argument label 'components:' in call
44 | }
45 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:68:28: error: cannot find type 'clock_t' in scope
66 |
67 | /// The C `clock_t` type
68 | public typealias Clock = clock_t
| `- error: cannot find type 'clock_t' in scope
69 |
70 | /// The C `clockid_t` type
/host/spi-builder-workspace/Sources/System/Time/TimeComponents.swift:144:5: error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
142 |
143 | @usableFromInline
144 | init(_ timeComponents: CInterop.TimeComponents) {
| `- error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
145 | self.init(_unsafeUninitializedCapacity: 26) { buffer in
146 | buffer.withMemoryRebound(to: CChar.self) { cString in
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:80:47: error: cannot find type 'timeval' in scope
78 |
79 | /// The C `timeval` type
80 | public typealias TimeIntervalMicroseconds = timeval
| `- error: cannot find type 'timeval' in scope
81 |
82 | /// The C `timespec` type
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:31:5: error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
29 | public extension TimeInterval.Microseconds {
30 |
31 | init(seconds: Double) {
| `- error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
32 | let (integerValue, decimalValue) = system_modf(seconds)
33 | let microseconds = decimalValue * 1_000_000.0
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:36:27: error: no exact matches in call to initializer
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
| |- error: no exact matches in call to initializer
| |- note: found candidate with type '(Time.Microseconds) -> Time.Microseconds'
| `- note: found candidate with type '(any Decoder) throws -> Time.Microseconds'
37 | )
38 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:36:64: error: type 'CInterop' has no member 'Microseconds'
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
| `- error: type 'CInterop' has no member 'Microseconds'
37 | )
38 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:35:26: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
33 | let microseconds = decimalValue * 1_000_000.0
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
37 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:35:37: error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
33 | let microseconds = decimalValue * 1_000_000.0
34 | self.init(
35 | seconds: Time(rawValue: Int(integerValue)),
| `- error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
36 | microseconds: Time.Microseconds(rawValue: CInterop.Microseconds(microseconds))
37 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:46:24: error: cannot assign value of type 'Time.Microseconds' to type 'Double'
44 | let seconds = Double(timeInterval.seconds.rawValue)
45 | let microseconds = Double(timeInterval.microseconds.rawValue) / 1_000_000.0
46 | self = seconds + microseconds
| `- error: cannot assign value of type 'Time.Microseconds' to type 'Double'
47 | }
48 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:102:29: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
100 | @usableFromInline
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
104 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:103:34: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
104 | }
105 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:103:30: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time.Microseconds' conform to '_ExpressibleByBuiltinIntegerLiteral'
101 | init(_ bytes: CInterop.TimeIntervalMicroseconds) {
102 | self.seconds = .init(rawValue: bytes.tv_sec)
103 | self.microseconds = .init(rawValue: bytes.tv_usec)
| `- error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Time.Microseconds' conform to '_ExpressibleByBuiltinIntegerLiteral'
104 | }
105 |
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Time.Microseconds'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: where 'Self' = 'Time.Microseconds'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:120:21: error: no exact matches in call to initializer
29 | public extension TimeInterval.Microseconds {
30 |
31 | init(seconds: Double) {
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(seconds:)')
32 | let (integerValue, decimalValue) = system_modf(seconds)
33 | let microseconds = decimalValue * 1_000_000.0
:
118 | retryOnInterrupt: Bool = true
119 | ) throws -> TimeInterval.Microseconds {
120 | return try .init(.getTime(retryOnInterrupt: retryOnInterrupt).get())
| `- error: no exact matches in call to initializer
121 | }
122 |
SystemPackage.TimeInterval.Microseconds.init:3:8: note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
1 | struct TimeInterval {
2 | struct Microseconds {
3 | public init(from decoder: any Decoder) throws }
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
4 | }
5 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalMicroseconds.swift:120:27: error: reference to member 'getTime' cannot be resolved without a contextual type
118 | retryOnInterrupt: Bool = true
119 | ) throws -> TimeInterval.Microseconds {
120 | return try .init(.getTime(retryOnInterrupt: retryOnInterrupt).get())
| `- error: reference to member 'getTime' cannot be resolved without a contextual type
121 | }
122 |
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:83:46: error: cannot find type 'timespec' in scope
81 |
82 | /// The C `timespec` type
83 | public typealias TimeIntervalNanoseconds = timespec
| `- error: cannot find type 'timespec' in scope
84 |
85 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:52:26: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
50 | let nanoseconds = decimalValue * 1_000_000_000.0
51 | self.init(
52 | seconds: Time(rawValue: Int(integerValue)),
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
53 | nanoseconds: Time.Nanoseconds(rawValue: Int(nanoseconds))
54 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:52:37: error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
50 | let nanoseconds = decimalValue * 1_000_000_000.0
51 | self.init(
52 | seconds: Time(rawValue: Int(integerValue)),
| `- error: cannot convert value of type 'Int' to expected argument type 'TimeComponents'
53 | nanoseconds: Time.Nanoseconds(rawValue: Int(nanoseconds))
54 | )
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:104:29: error: incorrect argument label in call (have 'rawValue:', expected 'components:')
102 | @usableFromInline
103 | init(_ bytes: CInterop.TimeIntervalNanoseconds) {
104 | self.seconds = .init(rawValue: bytes.tv_sec)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'components:')
105 | self.nanoseconds = .init(rawValue: bytes.tv_nsec)
106 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:93:29: error: cannot find type 'uid_t' in scope
91 | public typealias Nanoseconds = CLong
92 |
93 | public typealias UserID = uid_t
| `- error: cannot find type 'uid_t' in scope
94 |
95 | /// The platform file descriptor set.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Decodable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Decodable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.UserID' does not conform to 'Decodable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Hashable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Hashable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'UserID' to 'Hashable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Encodable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'Encodable'
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.UserID' does not conform to 'Encodable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'RawRepresentable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'UserID' does not conform to protocol 'RawRepresentable'
13 |
14 | /// The raw C user ID.
/host/spi-builder-workspace/Sources/System/UserID.swift:12:15: error: type 'UserID' does not conform to protocol 'Equatable'
10 | /// POSIX User ID
11 | @frozen
12 | public struct UserID: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'UserID' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | /// The raw C user ID.
15 | @_alwaysEmitIntoClient
16 | public let rawValue: CInterop.UserID
| `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'UserID' to 'Equatable'
17 |
18 | /// Creates a strongly typed process ID from a raw C user ID.
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'UserID' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'UserID' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'UserID.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'UserID.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'UserID' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'UserID' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'UserID' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'UserID' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'UserID' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'UserID' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'UserID' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'UserID' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'UserID' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'UserID' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'UserID' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(UserID, UserID) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(UserID, UserID) -> Bool'
3 |
BUILD FAILURE 6.1 wasm