Skip to content

fix: Add explicit OrderedCollections and DequeModule imports for Swift 6.3#3

Merged
scottmarchant merged 1 commit into
PassiveLogic:mainfrom
krodak:fix/swift-6.3-imports
Jul 21, 2026
Merged

fix: Add explicit OrderedCollections and DequeModule imports for Swift 6.3#3
scottmarchant merged 1 commit into
PassiveLogic:mainfrom
krodak:fix/swift-6.3-imports

Conversation

@krodak

@krodak krodak commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Overview

main enables the MemberImportVisibility upcoming feature but never imports DequeModule or OrderedCollections explicitly, even though EventLoopConnectionPool uses their members (the Deque / OrderedDictionary backing storage). Under Swift 6.3, which enforces the feature, the implicit member access is rejected and the package fails to build. This adds the two explicit imports.

Independent of any wasm work - it fixes the plain Swift 6.3 build. Needed first so the API-breakage baseline (which builds main) can compile.

Links

What changed

  • Sources/AsyncKit/ConnectionPool/EventLoopConnectionPool.swift - add explicit import DequeModule and import OrderedCollections.

Tested

  • swift build

…t 6.3

EventLoopConnectionPool uses members of OrderedCollections and DequeModule
(the OrderedDictionary and Deque backing storage), but the modules were not
imported explicitly. With the MemberImportVisibility upcoming feature enabled,
Swift 6.3 rejects the implicit member access, so the package fails to build.
Add the two explicit imports.

Co-authored-by: Scott Marchant <scottm@passivelogic.com>
@scottmarchant

Copy link
Copy Markdown
Collaborator

Note that we expect some test failures for a bit until we fix things up. Subsequent PR #2 is expected to fix CI.

@scottmarchant
scottmarchant merged commit 6a08ea4 into PassiveLogic:main Jul 21, 2026
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants