@@ -1284,9 +1284,7 @@ extension Dictionary {
12841284
12851285 /// A view of a dictionary's keys.
12861286 @frozen
1287- public struct Keys
1288- : Collection , Equatable ,
1289- CustomStringConvertible , CustomDebugStringConvertible {
1287+ public struct Keys : Collection , Equatable {
12901288 public typealias Element = Key
12911289 public typealias SubSequence = Slice < Dictionary . Keys >
12921290
@@ -1399,20 +1397,11 @@ extension Dictionary {
13991397
14001398 return true
14011399 }
1402-
1403- public var description : String {
1404- return _makeCollectionDescription ( )
1405- }
1406-
1407- public var debugDescription : String {
1408- return _makeCollectionDescription ( withTypeName: " Dictionary.Keys " )
1409- }
14101400 }
14111401
14121402 /// A view of a dictionary's values.
14131403 @frozen
1414- public struct Values
1415- : MutableCollection , CustomStringConvertible , CustomDebugStringConvertible {
1404+ public struct Values : MutableCollection {
14161405 public typealias Element = Value
14171406
14181407 @usableFromInline
@@ -1482,14 +1471,6 @@ extension Dictionary {
14821471 return count == 0
14831472 }
14841473
1485- public var description : String {
1486- return _makeCollectionDescription ( )
1487- }
1488-
1489- public var debugDescription : String {
1490- return _makeCollectionDescription ( withTypeName: " Dictionary.Values " )
1491- }
1492-
14931474 @inlinable
14941475 public mutating func swapAt( _ i: Index , _ j: Index ) {
14951476 guard i != j else { return }
@@ -1507,6 +1488,30 @@ extension Dictionary {
15071488 }
15081489}
15091490
1491+ @_unavailableInEmbedded
1492+ extension Dictionary . Keys
1493+ : CustomStringConvertible , CustomDebugStringConvertible {
1494+ public var description : String {
1495+ return _makeCollectionDescription ( )
1496+ }
1497+
1498+ public var debugDescription : String {
1499+ return _makeCollectionDescription ( withTypeName: " Dictionary.Keys " )
1500+ }
1501+ }
1502+
1503+ @_unavailableInEmbedded
1504+ extension Dictionary . Values
1505+ : CustomStringConvertible , CustomDebugStringConvertible {
1506+ public var description : String {
1507+ return _makeCollectionDescription ( )
1508+ }
1509+
1510+ public var debugDescription : String {
1511+ return _makeCollectionDescription ( withTypeName: " Dictionary.Values " )
1512+ }
1513+ }
1514+
15101515extension Dictionary . Keys {
15111516 @frozen
15121517 public struct Iterator : IteratorProtocol {
@@ -1614,13 +1619,15 @@ extension Dictionary: Hashable where Value: Hashable {
16141619 }
16151620}
16161621
1622+ @_unavailableInEmbedded
16171623extension Dictionary : _HasCustomAnyHashableRepresentation
16181624where Value: Hashable {
16191625 public __consuming func _toCustomAnyHashable( ) -> AnyHashable ? {
16201626 return AnyHashable ( _box: _DictionaryAnyHashableBox ( self ) )
16211627 }
16221628}
16231629
1630+ @_unavailableInEmbedded
16241631internal struct _DictionaryAnyHashableBox < Key: Hashable , Value: Hashable >
16251632 : _AnyHashableBox {
16261633 internal let _value : Dictionary < Key , Value >
@@ -1673,6 +1680,7 @@ internal struct _DictionaryAnyHashableBox<Key: Hashable, Value: Hashable>
16731680 }
16741681}
16751682
1683+ @_unavailableInEmbedded
16761684extension Collection {
16771685 // Utility method for KV collections that wish to implement
16781686 // CustomStringConvertible and CustomDebugStringConvertible using a bracketed
@@ -1706,6 +1714,7 @@ extension Collection {
17061714 }
17071715}
17081716
1717+ @_unavailableInEmbedded
17091718extension Dictionary : CustomStringConvertible , CustomDebugStringConvertible {
17101719 /// A string that represents the contents of the dictionary.
17111720 public var description : String {
0 commit comments