Skip to content

Commit 6360ca0

Browse files
authored
Remove @_implementationOnly usage (#294)
# Motivation We added `@_implementationOnly` a little while ago to hide the dependency on the `DequeModule`. However, with recent compilers this produces a warning since `@_implementationOnly` is only intended to be used in resilient libraries. # Modification This PR removes the usage of `@_implementationOnly`
1 parent 0a3866d commit 6360ca0

9 files changed

+12
-12
lines changed

Diff for: Sources/AsyncAlgorithms/Buffer/BoundedBufferStateMachine.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12-
@_implementationOnly import DequeModule
12+
import DequeModule
1313

1414
struct BoundedBufferStateMachine<Base: AsyncSequence> {
1515
typealias Element = Base.Element

Diff for: Sources/AsyncAlgorithms/Buffer/UnboundedBufferStateMachine.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12-
@_implementationOnly import DequeModule
12+
import DequeModule
1313

1414
struct UnboundedBufferStateMachine<Base: AsyncSequence> {
1515
typealias Element = Base.Element

Diff for: Sources/AsyncAlgorithms/Channels/ChannelStateMachine.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// See https://swift.org/LICENSE.txt for license information
99
//
1010
//===----------------------------------------------------------------------===//
11-
@_implementationOnly import OrderedCollections
11+
import OrderedCollections
1212

1313
// NOTE: this is only marked as unchecked since the swift-collections tag is before auditing for Sendable
1414
extension OrderedSet: @unchecked Sendable where Element: Sendable { }

Diff for: Sources/AsyncAlgorithms/CombineLatest/CombineLatestStateMachine.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12-
@_implementationOnly import DequeModule
12+
import DequeModule
1313

1414
/// State machine for combine latest
1515
struct CombineLatestStateMachine<

Diff for: Sources/AsyncAlgorithms/Locking.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
//===----------------------------------------------------------------------===//
1111

1212
#if canImport(Darwin)
13-
@_implementationOnly import Darwin
13+
import Darwin
1414
#elseif canImport(Glibc)
15-
@_implementationOnly import Glibc
15+
import Glibc
1616
#elseif canImport(WinSDK)
17-
@_implementationOnly import WinSDK
17+
import WinSDK
1818
#endif
1919

2020
internal struct Lock {

Diff for: Sources/AsyncAlgorithms/Merge/AsyncMerge2Sequence.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12-
@_implementationOnly import DequeModule
12+
import DequeModule
1313

1414
/// Creates an asynchronous sequence of elements from two underlying asynchronous sequences
1515
public func merge<Base1: AsyncSequence, Base2: AsyncSequence>(_ base1: Base1, _ base2: Base2) -> AsyncMerge2Sequence<Base1, Base2>

Diff for: Sources/AsyncAlgorithms/Merge/AsyncMerge3Sequence.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12-
@_implementationOnly import DequeModule
12+
import DequeModule
1313

1414
/// Creates an asynchronous sequence of elements from two underlying asynchronous sequences
1515
public func merge<

Diff for: Sources/AsyncAlgorithms/Merge/MergeStateMachine.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12-
@_implementationOnly import DequeModule
12+
import DequeModule
1313

1414
/// The state machine for any of the `merge` operator.
1515
///

Diff for: Sources/AsyncSequenceValidation/TaskDriver.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
import _CAsyncSequenceValidationSupport
1313

1414
#if canImport(Darwin)
15-
@_implementationOnly import Darwin
15+
import Darwin
1616
#elseif canImport(Glibc)
17-
@_implementationOnly import Glibc
17+
import Glibc
1818
#elseif canImport(WinSDK)
1919
#error("TODO: Port TaskDriver threading to windows")
2020
#endif

0 commit comments

Comments
 (0)