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 ef3dacf commit 5c16d2cCopy full SHA for 5c16d2c
compiler/src/dotty/tools/dotc/core/ConstraintRunInfo.scala
@@ -13,9 +13,11 @@ trait ConstraintRunInfo { self: Run =>
13
maxConstraint = c
14
}
15
def printMaxConstraint()(using Context): Unit =
16
- val printer = if (ctx.settings.YdetailedStats.value) default else typr
17
if maxSize > 0 then
18
- printer.println(s"max constraint = ${maxConstraint.nn.show}\nsize = $maxSize")
+ val printer = if ctx.settings.YdetailedStats.value then default else typr
+ printer.println(s"max constraint size: $maxSize")
19
+ try printer.println(s"max constraint = ${maxConstraint.nn.show}")
20
+ catch case ex: StackOverflowError => printer.println("max constraint cannot be printed due to stack overflow")
21
22
protected def reset(): Unit = maxConstraint = null
23
0 commit comments