Skip to content

Commit ea6ae67

Browse files
committed
[stlib] _NativeSet: Revert spurious change
1 parent 1ddf99a commit ea6ae67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/NativeSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ extension _NativeSet { // Insertions
362362
/// The `element` must not be already present in the Set.
363363
@inlinable
364364
internal func _unsafeInsertNew(_ element: __owned Element) {
365-
_precondition(count < capacity)
365+
_internalInvariant(count + 1 <= capacity)
366366
let hashValue = self.hashValue(for: element)
367367
if _isDebugAssertConfiguration() {
368368
// In debug builds, perform a full lookup and trap if we detect duplicate

0 commit comments

Comments
 (0)