Skip to content

Commit c3b39cf

Browse files
committed
Fix more InternalImportsByDefault errors.
With the upcoming feature `InternalImportsByDefault` enabled, some versions of the Swift compiler diagnose this pattern: ``` import protocol _Concurrency.Actor // error: package protocol cannot refine an internal protocol package protocol Proto: Actor { // ... } ``` Address these diagnostics by using correct access levels for direct imports of `_Concurrency`.
1 parent 7ea21e1 commit c3b39cf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Sources/_AsyncFileSystem/AsyncFileSystem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import protocol _Concurrency.Actor
13+
package import _Concurrency
1414
@preconcurrency package import struct SystemPackage.Errno
1515
@preconcurrency package import struct SystemPackage.FilePath
1616

Sources/_AsyncFileSystem/ConcurrencySupport.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//
1212
//===----------------------------------------------------------------------===//
1313

14-
import _Concurrency
14+
internal import _Concurrency
1515
internal import class Dispatch.DispatchQueue
1616

1717
extension DispatchQueue {

Sources/_AsyncFileSystem/ReadableFileStream.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import _Concurrency
13+
package import _Concurrency
1414
internal import SystemPackage
1515
internal import class Dispatch.DispatchQueue
1616

Sources/_AsyncFileSystem/WritableStream.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import protocol _Concurrency.Actor
11+
package import _Concurrency
1212

1313
/// An asynchronous output byte stream.
1414
///

0 commit comments

Comments
 (0)