Skip to content

Conversation

@Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Jan 14, 2025

Motivation:

Swift 6.1 nightlies have added many new warnings and errors to NIO. This patch resolves all 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

@Lukasa Lukasa added the 🆕 semver/minor Adds new public API. label Jan 14, 2025
//===----------------------------------------------------------------------===//

import DequeModule
@preconcurrency import DequeModule
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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
@Lukasa Lukasa force-pushed the cb-fix-61-compile branch from 6257e96 to 7e5ff76 Compare January 14, 2025 14:53
@Lukasa
Copy link
Contributor Author

Lukasa commented Jan 14, 2025

I'll be merging over the API breakage checker, which is wrong.

@Lukasa Lukasa merged commit 96877af into apple:main Jan 14, 2025
33 of 35 checks passed
@Lukasa Lukasa deleted the cb-fix-61-compile branch January 14, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants