We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89719e5 commit e052ffcCopy full SHA for e052ffc
compiler/src/dotty/tools/dotc/CompilationUnit.scala
@@ -95,11 +95,7 @@ class CompilationUnit protected (val source: SourceFile) {
95
* Depending on how fast the futures are run, sometimes it may
96
* observe the mutations in the later phase.
97
*/
98
- def forcePickling()(using Context): Unit =
99
- pickled = pickled.map { (sym, fn) =>
100
- val bytes = fn()
101
- (sym, () => bytes)
102
- }
+ def forcePickling()(using Context): Unit = pickled.foreach(_._2())
103
}
104
105
object CompilationUnit {
0 commit comments