[stdlib] Move the remaining 5.11 availability to 6.0

Presumably this was a mid-air collision between two PRs. Just update the
remaining references.
This commit is contained in:
Ben Barham
2024-02-22 19:51:27 -08:00
parent a703f225d7
commit 1d2ef3a003

View File

@@ -382,7 +382,7 @@ public protocol DistributedActorSystem<SerializationRequirement>: Sendable {
/// ## Errors
/// This method is allowed to throw because of underlying transport or serialization errors,
/// as well as by re-throwing the error received from the remote callee (if able to).
@available(SwiftStdlib 5.11, *)
@available(SwiftStdlib 6.0, *)
func remoteCall<Act, Err, Res>(
on actor: Act,
target: RemoteCallTarget,
@@ -762,7 +762,7 @@ public protocol DistributedTargetInvocationEncoder<SerializationRequirement> {
/// Record an argument of `Argument` type.
/// This will be invoked for every argument of the target, in declaration order.
@available(SwiftStdlib 5.11, *)
@available(SwiftStdlib 6.0, *)
mutating func recordArgument<Value/*: SerializationRequirement*/>(
_ argument: RemoteCallArgument<Value>
) throws
@@ -775,7 +775,7 @@ public protocol DistributedTargetInvocationEncoder<SerializationRequirement> {
/// Record the return type of the distributed method.
/// This method will not be invoked if the target is returning `Void`.
@available(SwiftStdlib 5.11, *)
@available(SwiftStdlib 6.0, *)
mutating func recordReturnType<R/*: SerializationRequirement*/>(_ type: R.Type) throws
/// Invoked to signal to the encoder that no further `record...` calls will be made on it.
@@ -914,7 +914,7 @@ public protocol DistributedTargetInvocationDecoder<SerializationRequirement> {
/// buffer for all the arguments and their expected types. The 'pointer' passed here is a pointer
/// to a "slot" in that pre-allocated buffer. That buffer will then be passed to a thunk that
/// performs the actual distributed (local) instance method invocation.
@available(SwiftStdlib 5.11, *)
@available(SwiftStdlib 6.0, *)
mutating func decodeNextArgument<Argument/*: SerializationRequirement*/>() throws -> Argument
/// Decode the specific error type that the distributed invocation target has recorded.
@@ -963,7 +963,7 @@ public protocol DistributedTargetInvocationResultHandler<SerializationRequiremen
/// Invoked when the distributed target execution returns successfully.
/// The `value` is the return value of the executed distributed invocation target.
@available(SwiftStdlib 5.11, *)
@available(SwiftStdlib 6.0, *)
func onReturn<Success/*: SerializationRequirement*/>(value: Success) async throws
/// Invoked when the distributed target execution of a `Void` returning