-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix compiling on 6.1 #3057
Fix compiling on 6.1 #3057
Conversation
@@ -12,7 +12,7 @@ | |||
// | |||
//===----------------------------------------------------------------------===// | |||
|
|||
import DequeModule | |||
@preconcurrency import DequeModule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we actually need a @preconcurrency
import? Deque
is Sendable
if its Element
is Sendable
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, because we support versions of swift-collections so old that they don't have that conformance. Let's lift the constraint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now fixed.
Motivation: Swift 6.1 nightlies have added many new warnings and errors to NIO. This patch resolves all but one of them. Modifications: - Clean up missing imports - Move away from @_implementationOnly where necessary - Fix a few things where Sendable mismatches were present. Result: Clean compile again
6257e96
to
7e5ff76
Compare
I'll be merging over the API breakage checker, which is wrong. |
Motivation:
Swift 6.1 nightlies have added many new warnings and errors to NIO. This patch resolves all of them.
Modifications:
Result:
Clean compile again