Skip to content

Source compat project 'vapor_sql-kit' fails on a compilation error #75655

@xymus

Description

@xymus

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

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfexistentialsFeature: 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 errorsource compatibility suiteFlag: An issue that surfaced in the source compatibility suiteswift 6.1transfer candidateThe issue may belong in another repositorytype checkerArea → compiler: Semantic analysisunexpected errorBug: Unexpected error

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions