Skip to content

Commit b557c3a

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 avoiding direct imports of `_Concurrency` since the module is implicitly imported publicly in every module, so applying access levels to its imports does not make much sense.
1 parent 7ea21e1 commit b557c3a

File tree

4 files changed

+0
-5
lines changed

4 files changed

+0
-5
lines changed

Sources/_AsyncFileSystem/AsyncFileSystem.swift

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

13-
import protocol _Concurrency.Actor
1413
@preconcurrency package import struct SystemPackage.Errno
1514
@preconcurrency package import struct SystemPackage.FilePath
1615

Sources/_AsyncFileSystem/ConcurrencySupport.swift

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

14-
import _Concurrency
1514
internal import class Dispatch.DispatchQueue
1615

1716
extension DispatchQueue {

Sources/_AsyncFileSystem/ReadableFileStream.swift

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

13-
import _Concurrency
1413
internal import SystemPackage
1514
internal import class Dispatch.DispatchQueue
1615

Sources/_AsyncFileSystem/WritableStream.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import protocol _Concurrency.Actor
12-
1311
/// An asynchronous output byte stream.
1412
///
1513
/// This protocol is designed to be able to support efficient streaming to

0 commit comments

Comments
 (0)