Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/src/scala/collection/Map.scala
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ transparent trait MapOps[K, +V, +CC[_, _] <: IterableOps[?, AnyConstr, ?], +C]
* See [[MapOps.LazyKeySet]] for a version that lazily captures the map.
*/
@deprecated("GenKeySet is not capture-safe, and so is deprecated and no longer used in .keySet implementations.", since = "3.8.0")
protected trait GenKeySet uses_init MapOps.this {
protected trait GenKeySet @retains[MapOps.this.type]() {
this: Set[K] =>
import caps.unsafe.{unsafeDiscardUses, unsafeAssumePure}
def iterator: Iterator[K] = unsafeDiscardUses(MapOps.this).keysIterator.unsafeAssumePure
Expand Down
Loading