Skip to content

Commit 8dcb284

Browse files
oderskyOlivierBlanvillain
authored andcommitted
Use -YdebugMissingRefs in unpickler
1 parent 20713ec commit 8dcb284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClas
179179
val ex = new BadSignature(
180180
i"""error reading Scala signature of $classRoot from $source:
181181
|error occurred at position $readIndex: $msg""")
182-
if (ctx.debug || true) original.getOrElse(ex).printStackTrace() // temporarily enable printing of original failure signature to debug failing builds
182+
if (ctx.settings.YdebugMissingRefs.value) original.getOrElse(ex).printStackTrace()
183183
throw ex
184184
}
185185

0 commit comments

Comments
 (0)