Skip to content

[6.0] Don't use @_moveOnly anymore in stdlib #75884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions stdlib/public/Concurrency/PartialAsyncTask.swift
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ extension UnownedJob: CustomStringConvertible {
@available(SwiftStdlib 5.9, *)
@available(*, deprecated, renamed: "ExecutorJob")
@frozen
@_moveOnly
public struct Job: Sendable {
public struct Job: ~Copyable, Sendable {
internal var context: Builtin.Job

@usableFromInline
Expand Down Expand Up @@ -262,8 +261,7 @@ extension Job {
/// you don't generally interact with jobs directly.
@available(SwiftStdlib 5.9, *)
@frozen
@_moveOnly
public struct ExecutorJob: Sendable {
public struct ExecutorJob: ~Copyable, Sendable {
internal var context: Builtin.Job

@usableFromInline
Expand Down
3 changes: 1 addition & 2 deletions stdlib/public/Synchronization/Atomics/Atomic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import Builtin
@frozen
@_rawLayout(like: Value.AtomicRepresentation)
@_staticExclusiveOnly
@_moveOnly
public struct Atomic<Value: AtomicRepresentable> {
public struct Atomic<Value: AtomicRepresentable>: ~Copyable {
@available(SwiftStdlib 6.0, *)
@_alwaysEmitIntoClient
@_transparent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
@available(SwiftStdlib 6.0, *)
@frozen
@_staticExclusiveOnly
@_moveOnly
public struct AtomicLazyReference<Instance: AnyObject> {
public struct AtomicLazyReference<Instance: AnyObject>: ~Copyable {
@usableFromInline
let storage: Atomic<Unmanaged<Instance>?>

Expand Down