Skip to content

Commit ba3cd79

Browse files
committed
Concurrency: Remove superflous _SwiftConcurrencyShims imports.
The `_SwiftConcurrencyShims` module was imported `@_implementationOnly` which was causing warnings to be emitted during the stdlib build. The module currently serves no purpose; the only declaration it contains is a defunct `_SwiftContext` struct which is not referenced by anything. The module needs to continue to exist for source compatibility, though, since it is part of the toolchain and imported publicly from other modules.
1 parent ada0ceb commit ba3cd79

15 files changed

+2
-15
lines changed

stdlib/public/Concurrency/Actor.swift

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

1313
import Swift
14-
@_implementationOnly import _SwiftConcurrencyShims
1514

1615
/// Common marker protocol providing a shared "base" for both (local) `Actor`
1716
/// and (potentially remote) `DistributedActor` types.

stdlib/public/Concurrency/AsyncLet.swift

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

1313
import Swift
14-
@_implementationOnly import _SwiftConcurrencyShims
1514

1615
// ==== Async Let -------------------------------------------------------------
1716
// Only has internal / builtin functions as it is not really accessible directly

stdlib/public/Concurrency/DiscardingTaskGroup.swift

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

1313
import Swift
14-
@_implementationOnly import _SwiftConcurrencyShims
1514

1615
// ==== DiscardingTaskGroup ---------------------------------------------------
1716

stdlib/public/Concurrency/Errors.swift

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

1313
import Swift
14-
@_implementationOnly import _SwiftConcurrencyShims
1514

1615
@available(SwiftStdlib 5.1, *)
1716
@_silgen_name("swift_deletedAsyncMethodError")

stdlib/public/Concurrency/GlobalConcurrentExecutor.swift

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

1313
import Swift
14-
@_implementationOnly import _SwiftConcurrencyShims
1514

1615
// None of TaskExecutor APIs are available in task-to-thread concurrency model.
1716
#if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY

stdlib/public/Concurrency/PartialAsyncTask.swift

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

1313
import Swift
14-
@_implementationOnly import _SwiftConcurrencyShims
1514

1615
// TODO(swift): rename the file to ExecutorJob.swift eventually, we don't use PartialTask terminology anymore
1716

stdlib/public/Concurrency/SourceCompatibilityShims.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
//===----------------------------------------------------------------------===//
1515

1616
import Swift
17-
@_implementationOnly import _SwiftConcurrencyShims
1817

1918
@available(SwiftStdlib 5.1, *)
2019
extension Task where Success == Never, Failure == Never {

stdlib/public/Concurrency/Task+TaskExecutor.swift

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

1313
import Swift
14-
@_implementationOnly import _SwiftConcurrencyShims
1514

1615
// None of TaskExecutor APIs are available in task-to-thread concurrency model.
1716
#if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY

stdlib/public/Concurrency/Task.swift

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

1313
import Swift
14-
@_implementationOnly import _SwiftConcurrencyShims
1514
@_implementationOnly import SwiftConcurrencyInternalShims
1615

1716
// ==== Task -------------------------------------------------------------------

stdlib/public/Concurrency/TaskCancellation.swift

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

1313
import Swift
14-
@_implementationOnly import _SwiftConcurrencyShims
1514

1615
// ==== Task Cancellation ------------------------------------------------------
1716

0 commit comments

Comments
 (0)