SwiftPackageIndex / SwiftPackageIndex-Server

The Swift Package Index is the place to find Swift packages!
https://swiftpackageindex.com
Apache License 2.0
551 stars 44 forks source link

Enable more flags to check for concurrency compatibility #3443

Open finestructure opened 1 day ago

finestructure commented 1 day ago

Discussed in https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/discussions/3442

Originally posted by **mattmassicotte** October 17, 2024 Hello friends! There are two additional flags that, while technically can be source-incompatible, can also have a meaningfully-positive impact on warnings produced by strict concurrency. `InferSendableFromCaptures`: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0418-inferring-sendable-for-methods.md `GlobalActorIsolatedTypesUsability`: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0434-global-actor-isolated-types-usability.md I've had to use both of these to address warnings that I would otherwise not be able to fix. I think it may make sense to consider enabling these as well. Thoughts?
daveverwer commented 23 hours ago

I'm not sure how much of an impact these will have on the totals but we should make sure to mark the date when these flags went into effect on the Ready for Swift 6 charts in case their impact is significant.