From 907ce2a79e8ac5f3dff0fc9dc4f2fe940b56b6f4 Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Sun, 19 Mar 2023 20:40:24 -0700 Subject: [PATCH] Remove remaining references to _AtomicValue --- Sources/Atomics/AtomicRawRepresentable.swift | 1 - Sources/Atomics/HighLevelTypes.swift.gyb | 8 ++++---- Sources/Atomics/autogenerated/HighLevelTypes.swift | 8 ++++---- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Sources/Atomics/AtomicRawRepresentable.swift b/Sources/Atomics/AtomicRawRepresentable.swift index 7205d58..1552e29 100644 --- a/Sources/Atomics/AtomicRawRepresentable.swift +++ b/Sources/Atomics/AtomicRawRepresentable.swift @@ -16,7 +16,6 @@ where RawValue: AtomicValue, RawValue.AtomicRepresentation.Value == RawValue { - public typealias _AtomicValue = Self public typealias AtomicRepresentation = AtomicRawRepresentableStorage } diff --git a/Sources/Atomics/HighLevelTypes.swift.gyb b/Sources/Atomics/HighLevelTypes.swift.gyb index ad7ef77..8011f1c 100644 --- a/Sources/Atomics/HighLevelTypes.swift.gyb +++ b/Sources/Atomics/HighLevelTypes.swift.gyb @@ -20,9 +20,9 @@ ${autogenerated_warning()} @frozen public struct UnsafeAtomic where Value.AtomicRepresentation.Value == Value { - // Note: the Value._AtomicValue == Value requirement could be relaxed, + // Note: the Value.AtomicRepresentation.Value == Value requirement could be relaxed, // at the cost of adding a bunch of potentially ambiguous overloads. - // (We'd need one set of implementations for `Value == Value._AtomicValue`, + // (We'd need one set of implementations for the type equality condition, // and another for `Value: AtomicReference`.) public typealias Storage = Value.AtomicRepresentation @@ -85,9 +85,9 @@ extension UnsafeAtomic: @unchecked Sendable where Value: Sendable {} @_fixed_layout public class ManagedAtomic where Value.AtomicRepresentation.Value == Value { - // Note: the Value._AtomicValue == Value requirement could be relaxed, + // Note: the Value.AtomicRepresentation.Value == Value requirement could be relaxed, // at the cost of adding a bunch of potentially ambiguous overloads. - // (We'd need one set of implementations for `Value == Value._AtomicValue`, + // (We'd need one set of implementations for the type equality condition, // and another for `Value: AtomicReference`.) @usableFromInline diff --git a/Sources/Atomics/autogenerated/HighLevelTypes.swift b/Sources/Atomics/autogenerated/HighLevelTypes.swift index 1c281ae..2a13377 100644 --- a/Sources/Atomics/autogenerated/HighLevelTypes.swift +++ b/Sources/Atomics/autogenerated/HighLevelTypes.swift @@ -22,9 +22,9 @@ @frozen public struct UnsafeAtomic where Value.AtomicRepresentation.Value == Value { - // Note: the Value._AtomicValue == Value requirement could be relaxed, + // Note: the Value.AtomicRepresentation.Value == Value requirement could be relaxed, // at the cost of adding a bunch of potentially ambiguous overloads. - // (We'd need one set of implementations for `Value == Value._AtomicValue`, + // (We'd need one set of implementations for the type equality condition, // and another for `Value: AtomicReference`.) public typealias Storage = Value.AtomicRepresentation @@ -87,9 +87,9 @@ extension UnsafeAtomic: @unchecked Sendable where Value: Sendable {} @_fixed_layout public class ManagedAtomic where Value.AtomicRepresentation.Value == Value { - // Note: the Value._AtomicValue == Value requirement could be relaxed, + // Note: the Value.AtomicRepresentation.Value == Value requirement could be relaxed, // at the cost of adding a bunch of potentially ambiguous overloads. - // (We'd need one set of implementations for `Value == Value._AtomicValue`, + // (We'd need one set of implementations for the type equality condition, // and another for `Value: AtomicReference`.) @usableFromInline