@@ -61,26 +61,22 @@ internal struct _ConcreteHashableBox<Base : Hashable> : _AnyHashableBox {
61
61
internal var _baseHashable : Base
62
62
63
63
@inlinable // FIXME(sil-serialize-all)
64
- @usableFromInline // FIXME(sil-serialize-all)
65
64
internal init ( _ base: Base ) {
66
65
self . _baseHashable = base
67
66
}
68
67
69
68
70
69
@inlinable // FIXME(sil-serialize-all)
71
- @usableFromInline // FIXME(sil-serialize-all)
72
70
internal var _typeID : ObjectIdentifier {
73
71
return ObjectIdentifier ( type ( of: self ) )
74
72
}
75
73
76
74
@inlinable // FIXME(sil-serialize-all)
77
- @usableFromInline // FIXME(sil-serialize-all)
78
75
internal func _unbox< T : Hashable > ( ) -> T ? {
79
76
return ( self as _AnyHashableBox as? _ConcreteHashableBox < T > ) ? . _baseHashable
80
77
}
81
78
82
79
@inlinable // FIXME(sil-serialize-all)
83
- @usableFromInline // FIXME(sil-serialize-all)
84
80
internal func _isEqual( to rhs: _AnyHashableBox ) -> Bool ? {
85
81
if let rhs: Base = rhs. _unbox ( ) {
86
82
return _baseHashable == rhs
@@ -89,25 +85,21 @@ internal struct _ConcreteHashableBox<Base : Hashable> : _AnyHashableBox {
89
85
}
90
86
91
87
@inlinable // FIXME(sil-serialize-all)
92
- @usableFromInline // FIXME(sil-serialize-all)
93
88
internal var _hashValue : Int {
94
89
return _baseHashable. hashValue
95
90
}
96
91
97
92
@inlinable // FIXME(sil-serialize-all)
98
- @usableFromInline // FIXME(sil-serialize-all)
99
93
func _hash( _into hasher: inout _Hasher ) {
100
94
_baseHashable. _hash ( into: & hasher)
101
95
}
102
96
103
97
@inlinable // FIXME(sil-serialize-all)
104
- @usableFromInline // FIXME(sil-serialize-all)
105
98
internal var _base : Any {
106
99
return _baseHashable
107
100
}
108
101
109
102
@inlinable // FIXME(sil-serialize-all)
110
- @usableFromInline // FIXME(sil-serialize-all)
111
103
internal
112
104
func _downCastConditional< T> ( into result: UnsafeMutablePointer < T > ) -> Bool {
113
105
guard let value = _baseHashable as? T else { return false }
@@ -122,7 +114,6 @@ internal struct _ConcreteHashableBox<Base : Hashable> : _AnyHashableBox {
122
114
// turns a non-custom representation into a custom one, which is used as
123
115
// the lowest-common-denominator for comparisons.
124
116
@inlinable // FIXME(sil-serialize-all)
125
- @usableFromInline // FIXME(sil-serialize-all)
126
117
internal func _getBridgedCustomAnyHashable< T> ( _ value: T ) -> AnyHashable ? {
127
118
let bridgedValue = _bridgeAnythingToObjectiveC ( value)
128
119
return ( bridgedValue as?
@@ -191,7 +182,6 @@ public struct AnyHashable {
191
182
}
192
183
193
184
@inlinable // FIXME(sil-serialize-all)
194
- @usableFromInline // FIXME(sil-serialize-all)
195
185
internal init < H : Hashable > ( _usingDefaultRepresentationOf base: H ) {
196
186
self . _box = _ConcreteHashableBox ( base)
197
187
self . _usedCustomRepresentation = false
@@ -217,7 +207,6 @@ public struct AnyHashable {
217
207
/// This avoids the intermediate re-boxing we would get if we just did
218
208
/// a downcast on `base`.
219
209
@inlinable // FIXME(sil-serialize-all)
220
- @usableFromInline // FIXME(sil-serialize-all)
221
210
internal
222
211
func _downCastConditional< T> ( into result: UnsafeMutablePointer < T > ) -> Bool {
223
212
// Attempt the downcast.
0 commit comments