-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfexistentialsFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesnot a bugResolution → not a bug: Reported as a bug but turned out to be expected behavior or programmer errorResolution → not a bug: Reported as a bug but turned out to be expected behavior or programmer errorsource compatibility suiteFlag: An issue that surfaced in the source compatibility suiteFlag: An issue that surfaced in the source compatibility suiteswift 6.1transfer candidateThe issue may belong in another repositoryThe issue may belong in another repositorytype checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysisunexpected errorBug: Unexpected errorBug: Unexpected error
Description
Description
https://ci.swift.org/job/swift-main-source-compat-suite-debug/854/
Reproduction
Error:
/Users/ec2-user/jenkins/workspace/swift-main-source-compat-suite-debug/swift-source-compat-suite/project_cache/vapor_sql-kit/Tests/SQLKitTests/BaseTests.swift:39:71: error: use of protocol 'Encodable' as a type must be written 'any Encodable'
37 |
38 | func testInsertWithArrayOfEncodable() {
39 | func weird(_ builder: SQLInsertBuilder, values: some Sequence<Encodable & Sendable>) -> SQLInsertBuilder {
| `- error: use of protocol 'Encodable' as a type must be written 'any Encodable'
40 | builder.values(Array(values))
41 | }
/Users/ec2-user/jenkins/workspace/swift-main-source-compat-suite-debug/swift-source-compat-suite/project_cache/vapor_sql-kit/Tests/SQLKitTests/BaseTests.swift:39:83: error: use of protocol 'Sendable' as a type must be written 'any Sendable'
37 |
38 | func testInsertWithArrayOfEncodable() {
39 | func weird(_ builder: SQLInsertBuilder, values: some Sequence<Encodable & Sendable>) -> SQLInsertBuilder {
| `- error: use of protocol 'Sendable' as a type must be written 'any Sendable'
40 | builder.values(Array(values))
41 | }
/Users/ec2-user/jenkins/workspace/swift-main-source-compat-suite-debug/swift-source-compat-suite/project_cache/vapor_sql-kit/Tests/SQLKitTests/BaseTests.swift:39:71: error: use of protocol 'Encodable' as a type must be written 'any Encodable'
37 |
38 | func testInsertWithArrayOfEncodable() {
39 | func weird(_ builder: SQLInsertBuilder, values: some Sequence<Encodable & Sendable>) -> SQLInsertBuilder {
| `- error: use of protocol 'Encodable' as a type must be written 'any Encodable'
40 | builder.values(Array(values))
41 | }
/Users/ec2-user/jenkins/workspace/swift-main-source-compat-suite-debug/swift-source-compat-suite/project_cache/vapor_sql-kit/Tests/SQLKitTests/BaseTests.swift:39:83: error: use of protocol 'Sendable' as a type must be written 'any Sendable'
37 |
38 | func testInsertWithArrayOfEncodable() {
39 | func weird(_ builder: SQLInsertBuilder, values: some Sequence<Encodable & Sendable>) -> SQLInsertBuilder {
| `- error: use of protocol 'Sendable' as a type must be written 'any Sendable'
40 | builder.values(Array(values))
41 | }
Expected behavior
Builds without errors.
Environment
It appears to fail only on main.
Additional information
No response
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfexistentialsFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesnot a bugResolution → not a bug: Reported as a bug but turned out to be expected behavior or programmer errorResolution → not a bug: Reported as a bug but turned out to be expected behavior or programmer errorsource compatibility suiteFlag: An issue that surfaced in the source compatibility suiteFlag: An issue that surfaced in the source compatibility suiteswift 6.1transfer candidateThe issue may belong in another repositoryThe issue may belong in another repositorytype checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysisunexpected errorBug: Unexpected errorBug: Unexpected error