Skip to content

Commit 169ed58

Browse files
committed
[embedded] Revert change on FixedWidthInteger protocol requirements, use an empty protocol instead
1 parent 11221d8 commit 169ed58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/Integers.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,12 +1903,12 @@ extension BinaryInteger {
19031903
#if !$Embedded
19041904
public typealias _LosslessStringConvertibleOrNone = LosslessStringConvertible
19051905
#else
1906-
public typealias _LosslessStringConvertibleOrNone = Any
1906+
public protocol _LosslessStringConvertibleOrNone {}
19071907
#endif
19081908

19091909
public protocol FixedWidthInteger: BinaryInteger, _LosslessStringConvertibleOrNone
19101910
where Magnitude: FixedWidthInteger & UnsignedInteger,
1911-
Stride: FixedWidthInteger & SignedInteger, Stride.Stride == Stride {
1911+
Stride: FixedWidthInteger & SignedInteger {
19121912
/// The number of bits used for the underlying binary representation of
19131913
/// values of this type.
19141914
///

0 commit comments

Comments
 (0)