Remove remaining references to _AtomicValue

This commit is contained in:
Karoy Lorentey committed 2023-03-19 20:41:37 -07:00
1 parent 5730529b7f
commit 907ce2a79e
3 files changed
+8 -9

No files matched your search

@@ -16,7 +16,6 @@ where
RawValue: AtomicValue,
RawValue.AtomicRepresentation.Value == RawValue
{
public typealias _AtomicValue = Self
public typealias AtomicRepresentation = AtomicRawRepresentableStorage<Self>
}
+4 -4
View File
@@ -20,9 +20,9 @@ ${autogenerated_warning()}
@frozen
public struct UnsafeAtomic<Value: AtomicValue>
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<Value: AtomicValue>
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
@@ -22,9 +22,9 @@
@frozen
public struct UnsafeAtomic<Value: AtomicValue>
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<Value: AtomicValue>
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