File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,11 @@ trait ConstraintRunInfo { self: Run =>
13
13
maxConstraint = c
14
14
}
15
15
def printMaxConstraint ()(using Context ): Unit =
16
- val printer = if (ctx.settings.YdetailedStats .value) default else typr
17
16
if maxSize > 0 then
18
- printer.println(s " max constraint = ${maxConstraint.nn.show}\n size = $maxSize" )
17
+ val printer = if ctx.settings.YdetailedStats .value then default else typr
18
+ 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" )
19
21
20
22
protected def reset (): Unit = maxConstraint = null
21
23
}
You can’t perform that action at this time.
0 commit comments