Skip to content

Commit eebdcba

Browse files
committed
Fix HashSet.-=
I overlooked a backport of a fix from HashMap to HashSet.
1 parent 785a31b commit eebdcba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/util/HashSet.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class HashSet[T](initialCapacity: Int = 8, capacityMultiple: Int = 2) extends Mu
107107
while
108108
idx = nextIndex(idx)
109109
e = entryAt(idx)
110-
e != null && (isDense || index(hash(e)) != idx)
110+
e != null
111111
do
112112
if isDense
113113
|| index(hole - index(hash(e))) < limit

0 commit comments

Comments
 (0)