Skip to content

Commit 4e2f3e3

Browse files
committed
fix: remove LazyList._empty from the init checker
That `private` field was removed from `scala.collection.immutable.LazyList` in 3a84ff3
1 parent e55df11 commit 4e2f3e3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/transform/init/Objects.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,11 @@ class Objects(using Context @constructorOnly):
7474
val MapNode_EmptyMapNode: Symbol = immutableMapNode.requiredValue("EmptyMapNode")
7575
val immutableHashMap: Symbol = requiredModule("scala.collection.immutable.HashMap")
7676
val HashMap_EmptyMap: Symbol = immutableHashMap.requiredValue("EmptyMap")
77-
val immutableLazyList: Symbol = requiredModule("scala.collection.immutable.LazyList")
78-
val LazyList_empty: Symbol = immutableLazyList.requiredValue("_empty")
7977
val ManifestFactory_ObjectTYPE = defn.ManifestFactoryModule.requiredValue("ObjectTYPE")
8078
val ManifestFactory_NothingTYPE = defn.ManifestFactoryModule.requiredValue("NothingTYPE")
8179
val ManifestFactory_NullTYPE = defn.ManifestFactoryModule.requiredValue("NullTYPE")
8280

83-
val allowList: Set[Symbol] = Set(SetNode_EmptySetNode, HashSet_EmptySet, Vector_EmptyIterator, MapNode_EmptyMapNode, HashMap_EmptyMap, LazyList_empty,
81+
val allowList: Set[Symbol] = Set(SetNode_EmptySetNode, HashSet_EmptySet, Vector_EmptyIterator, MapNode_EmptyMapNode, HashMap_EmptyMap,
8482
ManifestFactory_ObjectTYPE, ManifestFactory_NothingTYPE, ManifestFactory_NullTYPE)
8583

8684
// ----------------------------- abstract domain -----------------------------

0 commit comments

Comments
 (0)