Skip to content

Commit 6301909

Browse files
committed
avoid unnecessary @available checks
1 parent 19ab0a1 commit 6301909

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

test/Distributed/Runtime/distributed_actor_dynamic_remote_func.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-distributed -parse-as-library) | %FileCheck %s
1+
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-distributed -parse-as-library -Xfrontend -disable-availability-checking) | %FileCheck %s
22

33
// REQUIRES: executable_test
44
// REQUIRES: concurrency
@@ -12,7 +12,6 @@
1212

1313
import _Distributed
1414

15-
@available(SwiftStdlib 5.5, *)
1615
distributed actor LocalWorker {
1716
init(transport: ActorTransport) {
1817
defer { transport.actorReady(self) } // FIXME(distributed): rdar://81783599 this should be injected automatically
@@ -27,7 +26,6 @@ distributed actor LocalWorker {
2726
}
2827
}
2928

30-
@available(SwiftStdlib 5.5, *)
3129
extension LocalWorker {
3230
@_dynamicReplacement(for: _remote_function())
3331
// TODO(distributed): @_remoteDynamicReplacement(for: function()) - could be a nicer spelling, hiding that we use dynamic under the covers
@@ -44,16 +42,13 @@ extension LocalWorker {
4442

4543
// ==== Fake Transport ---------------------------------------------------------
4644

47-
48-
@available(SwiftStdlib 5.5, *)
4945
struct ActorAddress: ActorIdentity {
5046
let address: String
5147
init(parse address : String) {
5248
self.address = address
5349
}
5450
}
5551

56-
@available(SwiftStdlib 5.5, *)
5752
struct FakeTransport: ActorTransport {
5853
func decodeIdentity(from decoder: Decoder) throws -> AnyActorIdentity {
5954
fatalError("not implemented:\(#function)")
@@ -83,7 +78,6 @@ struct FakeTransport: ActorTransport {
8378

8479
// ==== Execute ----------------------------------------------------------------
8580

86-
@available(SwiftStdlib 5.5, *)
8781
func test_local() async throws {
8882
let transport = FakeTransport()
8983

@@ -95,7 +89,6 @@ func test_local() async throws {
9589
// CHECK: call: local:
9690
}
9791

98-
@available(SwiftStdlib 5.5, *)
9992
func test_remote() async throws {
10093
let address = ActorAddress(parse: "")
10194
let transport = FakeTransport()
@@ -110,7 +103,6 @@ func test_remote() async throws {
110103
// CHECK: call: _cluster_remote_echo(name:):Charlie
111104
}
112105

113-
@available(SwiftStdlib 5.5, *)
114106
@main struct Main {
115107
static func main() async {
116108
try! await test_local()

0 commit comments

Comments
 (0)