@@ -406,6 +406,12 @@ extension AdditiveArithmetic {
406
406
}
407
407
}
408
408
409
+ #if !$Embedded
410
+ public typealias _CustomStringConvertibleOrNone = CustomStringConvertible
411
+ #else
412
+ public typealias _CustomStringConvertibleOrNone = Any
413
+ #endif
414
+
409
415
//===----------------------------------------------------------------------===//
410
416
//===--- BinaryInteger ----------------------------------------------------===//
411
417
//===----------------------------------------------------------------------===//
@@ -566,13 +572,6 @@ extension AdditiveArithmetic {
566
572
/// print("\(z) is greater than \(x).")
567
573
/// }
568
574
/// // Prints "23 is greater than -23."
569
-
570
- #if !$Embedded
571
- public typealias _CustomStringConvertibleOrNone = CustomStringConvertible
572
- #else
573
- public typealias _CustomStringConvertibleOrNone = Any
574
- #endif
575
-
576
575
public protocol BinaryInteger :
577
576
Hashable , Numeric , _CustomStringConvertibleOrNone , Strideable
578
577
where Magnitude: BinaryInteger , Magnitude. Magnitude == Magnitude
@@ -1831,6 +1830,12 @@ extension BinaryInteger {
1831
1830
}
1832
1831
}
1833
1832
1833
+ #if !$Embedded
1834
+ public typealias _LosslessStringConvertibleOrNone = LosslessStringConvertible
1835
+ #else
1836
+ public protocol _LosslessStringConvertibleOrNone { }
1837
+ #endif
1838
+
1834
1839
//===----------------------------------------------------------------------===//
1835
1840
//===--- FixedWidthInteger ------------------------------------------------===//
1836
1841
//===----------------------------------------------------------------------===//
@@ -1899,13 +1904,6 @@ extension BinaryInteger {
1899
1904
/// customization points for arithmetic operations. When you provide just those
1900
1905
/// methods, the standard library provides default implementations for all
1901
1906
/// other arithmetic methods and operators.
1902
-
1903
- #if !$Embedded
1904
- public typealias _LosslessStringConvertibleOrNone = LosslessStringConvertible
1905
- #else
1906
- public protocol _LosslessStringConvertibleOrNone { }
1907
- #endif
1908
-
1909
1907
public protocol FixedWidthInteger : BinaryInteger , _LosslessStringConvertibleOrNone
1910
1908
where Magnitude: FixedWidthInteger & UnsignedInteger ,
1911
1909
Stride: FixedWidthInteger & SignedInteger {
0 commit comments