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`
This commit is contained in:
Franz Busch authored and GitHub committed 2023-09-27 08:19:00 -07:00
1 parent 0a3866daec
commit 6360ca0344
9 files changed
+12 -12

No files matched your search

@@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//
@_implementationOnly import DequeModule
import DequeModule
struct BoundedBufferStateMachine<Base: AsyncSequence> {
typealias Element = Base.Element
@@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//
@_implementationOnly import DequeModule
import DequeModule
struct UnboundedBufferStateMachine<Base: AsyncSequence> {
typealias Element = Base.Element
@@ -8,7 +8,7 @@
// See https://swift.org/LICENSE.txt for license information
//
//===----------------------------------------------------------------------===//
@_implementationOnly import OrderedCollections
import OrderedCollections
// NOTE: this is only marked as unchecked since the swift-collections tag is before auditing for Sendable
extension OrderedSet: @unchecked Sendable where Element: Sendable { }
@@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//
@_implementationOnly import DequeModule
import DequeModule
/// State machine for combine latest
struct CombineLatestStateMachine<
+3 -3
View File
@@ -10,11 +10,11 @@
//===----------------------------------------------------------------------===//
#if canImport(Darwin)
@_implementationOnly import Darwin
import Darwin
#elseif canImport(Glibc)
@_implementationOnly import Glibc
import Glibc
#elseif canImport(WinSDK)
@_implementationOnly import WinSDK
import WinSDK
#endif
internal struct Lock {
@@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//
@_implementationOnly import DequeModule
import DequeModule
/// Creates an asynchronous sequence of elements from two underlying asynchronous sequences
public func merge<Base1: AsyncSequence, Base2: AsyncSequence>(_ base1: Base1, _ base2: Base2) -> AsyncMerge2Sequence<Base1, Base2>
@@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//
@_implementationOnly import DequeModule
import DequeModule
/// Creates an asynchronous sequence of elements from two underlying asynchronous sequences
public func merge<
@@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//
@_implementationOnly import DequeModule
import DequeModule
/// The state machine for any of the `merge` operator.
///
@@ -12,9 +12,9 @@
import _CAsyncSequenceValidationSupport
#if canImport(Darwin)
@_implementationOnly import Darwin
import Darwin
#elseif canImport(Glibc)
@_implementationOnly import Glibc
import Glibc
#elseif canImport(WinSDK)
#error("TODO: Port TaskDriver threading to windows")
#endif