File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -177,15 +177,15 @@ extension _NativeDictionary {
177
177
internal func __abi_mapValues< T> (
178
178
_ transform: ( Value ) throws -> T
179
179
) rethrows -> _NativeDictionary < Key , T > {
180
- let resultStorage = _DictionaryStorage < Key , T > . copy ( original: _storage)
181
- _internalInvariant ( resultStorage. _seed == _storage. _seed)
182
- let result = _NativeDictionary < Key , T > ( resultStorage)
180
+ let resultStorage = unsafe _DictionaryStorage< Key , T > . copy ( original: _storage)
181
+ unsafe _internalInvariant ( resultStorage. _seed == _storage. _seed)
182
+ let result = unsafe _NativeDictionary< Key , T > ( resultStorage)
183
183
// Because the current and new buffer have the same scale and seed, we can
184
184
// initialize to the same locations in the new buffer, skipping hash value
185
185
// recalculations.
186
- for bucket in hashTable {
187
- let key = self . uncheckedKey ( at: bucket)
188
- let value = self . uncheckedValue ( at: bucket)
186
+ for unsafe bucket in unsafe hashTable {
187
+ let key = unsafe self. uncheckedKey ( at: bucket)
188
+ let value = unsafe self. uncheckedValue ( at: bucket)
189
189
try result. _insert ( at: bucket, key: key, value: transform ( value) )
190
190
}
191
191
return result
You can’t perform that action at this time.
0 commit comments