Skip to content

Commit 2b1b68f

Browse files
authored
Merge pull request #19666 from lorentey/dictionary-remove-is-slow
[stdlib] Mark _NativeDictionary._delete(at:) non-releasing
2 parents e6465d1 + f300622 commit 2b1b68f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

stdlib/public/core/NativeDictionary.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ extension _NativeDictionary: _HashTableDelegate {
540540

541541
extension _NativeDictionary { // Deletion
542542
@inlinable
543+
@_effects(releasenone)
543544
internal func _delete(at bucket: Bucket) {
544545
hashTable.delete(at: bucket, with: self)
545546
_storage._count -= 1

stdlib/public/core/NativeSet.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ extension _NativeSet: _HashTableDelegate {
442442

443443
extension _NativeSet { // Deletion
444444
@inlinable
445+
@_effects(releasenone)
445446
internal mutating func _delete(at bucket: Bucket) {
446447
hashTable.delete(at: bucket, with: self)
447448
_storage._count -= 1

0 commit comments

Comments
 (0)